diff options
| -rw-r--r-- | Doc/library/os.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index cab2522..4cc6d4f 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -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) |
