Skip to content

Commit c5ce186

Browse files
miss-islingtonEtienne Gautier
and
Etienne Gautier
authored
documentation: clarification about the function remove in os library (pythonGH-19024) (pythonGH-25618)
(cherry picked from commit b6daab2) Co-authored-by: Etienne Gautier <etienne.gautier@outlook.com>
1 parent 6d4556f commit c5ce186

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/library/os.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2106,6 +2106,7 @@ features:
21062106

21072107
Remove (delete) the file *path*. If *path* is a directory, an
21082108
:exc:`IsADirectoryError` is raised. Use :func:`rmdir` to remove directories.
2109+
If the file does not exist, a :exc:`FileNotFoundError` is raised.
21092110

21102111
This function can support :ref:`paths relative to directory descriptors
21112112
<dir_fd>`.

0 commit comments

Comments
 (0)