Commit 47c41b4e authored by Victor Stinner's avatar Victor Stinner

Issue #23605: os.walk() doc now mentions shutil.rmtree() in the last example

parent 101447b3
...@@ -2391,8 +2391,9 @@ features: ...@@ -2391,8 +2391,9 @@ features:
if 'CVS' in dirs: if 'CVS' in dirs:
dirs.remove('CVS') # don't visit CVS directories dirs.remove('CVS') # don't visit CVS directories
In the next example, walking the tree bottom-up is essential: :func:`rmdir` In the next example (simple implementation of :func:`shutil.rmtree`),
doesn't allow deleting a directory before the directory is empty:: walking the tree bottom-up is essential, :func:`rmdir` doesn't allow
deleting a directory before the directory is empty::
# Delete everything reachable from the directory named in "top", # Delete everything reachable from the directory named in "top",
# assuming there are no symbolic links. # assuming there are no symbolic links.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment