documentation: clarification about the function remove in os library
This commit is contained in:
parent
61ac612e78
commit
1b059b33ac
|
@ -2111,6 +2111,7 @@ features:
|
|||
|
||||
Remove (delete) the file *path*. If *path* is a directory, an
|
||||
:exc:`IsADirectoryError` is raised. Use :func:`rmdir` to remove directories.
|
||||
If the file does not exist, a :exc:`FileNotFoundError` is raised.
|
||||
|
||||
This function can support :ref:`paths relative to directory descriptors
|
||||
<dir_fd>`.
|
||||
|
|
Loading…
Reference in New Issue