Skip to content

Commit

Permalink
Enable followlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfeline committed Jul 18, 2017
1 parent d4f28e9 commit 25aee73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion animanager/files/utils.py
Expand Up @@ -25,7 +25,8 @@ def find_files(dirpath: str) -> Iterable[str]:
Returns a generator that yields paths in no particular order.
"""
for dirpath, dirnames, filenames in os.walk(dirpath, topdown=True):
for dirpath, dirnames, filenames in os.walk(dirpath, topdown=True,
followlinks=True):
if os.path.basename(dirpath).startswith('.'):
del dirnames[:]
for filename in filenames:
Expand Down

0 comments on commit 25aee73

Please sign in to comment.