Skip to content

Commit b6daab2

Browse files
author
Etienne Gautier
authored
documentation: clarification about the function remove in os library (pythonGH-19024)
1 parent 7be870f commit b6daab2

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
@@ -2247,6 +2247,7 @@ features:
22472247

22482248
Remove (delete) the file *path*. If *path* is a directory, an
22492249
:exc:`IsADirectoryError` is raised. Use :func:`rmdir` to remove directories.
2250+
If the file does not exist, a :exc:`FileNotFoundError` is raised.
22502251

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

0 commit comments

Comments
 (0)