pathlib: fix symlinked directories not followed during collection
This commit is contained in:
@@ -558,7 +558,7 @@ def visit(
|
||||
entries = sorted(os.scandir(path), key=lambda entry: entry.name)
|
||||
yield from entries
|
||||
for entry in entries:
|
||||
if entry.is_dir(follow_symlinks=False) and recurse(entry):
|
||||
if entry.is_dir() and recurse(entry):
|
||||
yield from visit(entry.path, recurse)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user