From 96c1c7a571642e5955d7608830b69067760623f0 Mon Sep 17 00:00:00 2001 From: Fredrik Lundh Date: Sat, 12 Nov 2005 15:55:04 +0000 Subject: SF#1343671. The removedirs function removes empty directories, it doesn't empty them. --- Lib/os.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/os.py b/Lib/os.py index bf1b086..7c49ba4 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 -- cgit v0.12