documentation: clarification about the function remove in os library (GH-19024)

This commit is contained in:
Etienne Gautier 2021-04-26 06:21:50 +02:00 committed by GitHub
parent 7be870f945
commit b6daab2f67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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>`.