From: Fredrik Lundh Date: Sat, 12 Nov 2005 15:55:04 +0000 (+0000) Subject: SF#1343671. X-Git-Tag: v2.5a0~1175 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96c1c7a571642e5955d7608830b69067760623f0;p=thirdparty%2FPython%2Fcpython.git SF#1343671. The removedirs function removes empty directories, it doesn't empty them. --- diff --git a/Lib/os.py b/Lib/os.py index bf1b08638333..7c49ba4b6a4d 100644 --- a/Lib/os.py +++ b/Lib/os.py @@ -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