Skip to content

Commit

Permalink
fix detecting whether a file is in the SymlinkView
Browse files Browse the repository at this point in the history
previously, symlinks were followed by os.path.isfile
  • Loading branch information
wisp3rwind committed May 6, 2020
1 parent dc420d4 commit 30a2175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beetsplug/alternatives.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def parse_config(self, config):

def matched_item_action(self, item):
path = self.get_path(item)
if path and os.path.isfile(syspath(path)):
if path and os.path.lexists(syspath(path)):
dest = self.destination(item)
_, path_ext = os.path.splitext(path)
_, dest_ext = os.path.splitext(dest)
Expand Down

0 comments on commit 30a2175

Please sign in to comment.