diff options
author | Etienne Gautier <etienne.gautier@outlook.com> | 2021-04-26 04:21:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-26 04:21:50 (GMT) |
commit | b6daab2f676de1773d8f35fb362fe4c57449301d (patch) | |
tree | 78db905609d81de7227a3d847c6a689604a7934f /Doc/library/os.rst | |
parent | 7be870f9456ad04c3b67881497de6346d83805d2 (diff) | |
download | cpython-b6daab2f676de1773d8f35fb362fe4c57449301d.zip cpython-b6daab2f676de1773d8f35fb362fe4c57449301d.tar.gz cpython-b6daab2f676de1773d8f35fb362fe4c57449301d.tar.bz2 |
documentation: clarification about the function remove in os library (GH-19024)
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r-- | Doc/library/os.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 574aa2e..b4c2ca9 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -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>`. |