mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Merge 3.4 (os doc)
This commit is contained in:
commit
80f6bb4cd8
1 changed files with 3 additions and 2 deletions
|
@ -2604,8 +2604,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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue