Skip to content

Commit

Permalink
Fixes bug where readlink is applied on regular files.
Browse files Browse the repository at this point in the history
  • Loading branch information
bfloch committed Feb 3, 2021
1 parent 7f760bf commit 1ff7686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rez/utils/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def to_abs(target):

for name in os.listdir(path):
linkpath = os.path.join(path, name)
if os.path.islink:
if os.path.islink(linkpath):
source_ = os.readlink(linkpath)
if to_abs(source_) == abs_source:
return name
Expand Down

0 comments on commit 1ff7686

Please sign in to comment.