diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 2aea2105c36..0c6f0b86cd7 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -2115,6 +2115,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 `.