mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
documentation: clarification about the function remove in os library (GH-19024)
This commit is contained in:
parent
7be870f945
commit
b6daab2f67
1 changed files with 1 additions and 0 deletions
|
@ -2247,6 +2247,7 @@ features:
|
||||||
|
|
||||||
Remove (delete) the file *path*. If *path* is a directory, an
|
Remove (delete) the file *path*. If *path* is a directory, an
|
||||||
:exc:`IsADirectoryError` is raised. Use :func:`rmdir` to remove directories.
|
: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
|
This function can support :ref:`paths relative to directory descriptors
|
||||||
<dir_fd>`.
|
<dir_fd>`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue