Kaydet (Commit) 1b2695a4 authored tarafından Georg Brandl's avatar Georg Brandl

#6677: note that rmdir only removes empty directories.

üst 626c0aab
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment