mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
#6677: note that rmdir only removes empty directories.
This commit is contained in:
parent
626c0aabe8
commit
1b2695a4c2
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue