You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When topdown is True, the caller can modify the dirnames list in-place (perhaps using del or slice assignment),
and walk() will only recurse into the subdirectories whose names remain in dirnames;
this can be used to prune the search, impose a specific order of visiting, or even to inform walk()
about directories the caller creates or renames before it resumes walk() again.
Allowing modifying
dirnames
in order to improve browsing large filesystems:os.walk
Related issue: Add topdown kwarg to AbstractFileSystem.walk()
The text was updated successfully, but these errors were encountered: