#6677: note that rmdir only removes empty directories.

This commit is contained in:
Georg Brandl 2009-08-24 17:48:40 +00:00
parent 626c0aabe8
commit 1b2695a4c2
1 changed files with 4 additions and 1 deletions

View File

@ -1121,7 +1121,10 @@ Files and Directories
.. function:: rmdir(path)
Remove the directory *path*. Availability: Unix, Windows.
Remove (delete) the directory *path*. Only works when the directory is
empty, otherwise, :exc:`OSError` is raised. In order to remove whole
directory trees, :func:`shutil.rmtree` can be used. Availability: Unix,
Windows.
.. function:: stat(path)