We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3d591f commit b462f14Copy full SHA for b462f14
Doc/library/pathlib.rst
@@ -1038,7 +1038,7 @@ call fails (for example because the path doesn't exist).
1038
# Delete everything reachable from the directory "top".
1039
# CAUTION: This is dangerous! For example, if top == Path('/'),
1040
# it could delete all of your files.
1041
- for root, dirs, files in top.walk(topdown=False):
+ for root, dirs, files in top.walk(top_down=False):
1042
for name in files:
1043
(root / name).unlink()
1044
for name in dirs:
0 commit comments