documentation: clarification about the function remove in os library

This commit is contained in:
Etienne Gautier 2020-03-15 23:29:49 +01:00 committed by GitHub
parent 61ac612e78
commit 1b059b33ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2111,6 +2111,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>`.