mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
SF#1343671.
The removedirs function removes empty directories, it doesn't empty them.
This commit is contained in:
parent
d489398da9
commit
96c1c7a571
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ def makedirs(name, mode=0777):
|
|||
def removedirs(name):
|
||||
"""removedirs(path)
|
||||
|
||||
Super-rmdir; remove a leaf directory and empty all intermediate
|
||||
Super-rmdir; remove a leaf directory and all empty intermediate
|
||||
ones. Works like rmdir except that, if the leaf directory is
|
||||
successfully removed, directories corresponding to rightmost path
|
||||
segments will be pruned away until either the whole path is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue