mirror of https://github.com/python/cpython
documentation: clarification about the function remove in os library (GH-19024)
This commit is contained in:
parent
7be870f945
commit
b6daab2f67
|
@ -2247,6 +2247,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