Searched refs:removedirs (Results 1 – 6 of 6) sorted by relevance
42 map(lambda path: os.removedirs(os.path.dirname(path)), paths)50 map(lambda path: os.removedirs(os.path.dirname(path)), paths)
232 def removedirs(name): function276 removedirs(head)
1649 os.removedirs(path)1724 os.removedirs(dirb)1735 os.removedirs(dirb)1747 os.removedirs(dirb)
2271 .. function:: removedirs(name)2276 leaf directory is successfully removed, :func:`removedirs` tries to2279 is not empty). For example, ``os.removedirs('foo/bar/baz')`` will first remove2284 .. audit-event:: os.remove path,dir_fd os.removedirs2325 segments of the old name will be pruned away using :func:`removedirs`.
470 don't exist. ``os.removedirs(path)`` will remove intermediate directories as
28990 - New functions in os.py: makedirs(), removedirs(), renames(). New