follow symlinks

This commit is contained in:
Vladimir Mandic
2023-05-18 07:36:38 -04:00
parent 4d67ee67ed
commit c1e70df845
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -733,7 +733,7 @@ def walk_files(path, allowed_extensions=None):
return
if allowed_extensions is not None:
allowed_extensions = set(allowed_extensions)
for root, _dirs, files in os.walk(path):
for root, _dirs, files in os.walk(path, followlinks=True):
for filename in files:
if allowed_extensions is not None:
_, ext = os.path.splitext(filename)