diff options
| author | Etienne Gautier <etienne.gautier@outlook.com> | 2021-04-26 06:21:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-25 21:21:50 -0700 |
| commit | b6daab2f676de1773d8f35fb362fe4c57449301d (patch) | |
| tree | 78db905609d81de7227a3d847c6a689604a7934f | |
| parent | 7be870f9456ad04c3b67881497de6346d83805d2 (diff) | |
| download | cpython-git-b6daab2f676de1773d8f35fb362fe4c57449301d.tar.gz | |
documentation: clarification about the function remove in os library (GH-19024)
| -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 574aa2e647..b4c2ca9d4f 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>`. |
