mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-41737: expand doc for NotADirectoryError (GH-27471)
This commit is contained in:
parent
8c9f847997
commit
f7c23a99cd
1 changed files with 4 additions and 2 deletions
|
|
@ -690,8 +690,10 @@ depending on the system error code.
|
||||||
|
|
||||||
.. exception:: NotADirectoryError
|
.. exception:: NotADirectoryError
|
||||||
|
|
||||||
Raised when a directory operation (such as :func:`os.listdir`) is requested
|
Raised when a directory operation (such as :func:`os.listdir`) is requested on
|
||||||
on something which is not a directory.
|
something which is not a directory. On most POSIX platforms, it may also be
|
||||||
|
raised if an operation attempts to open or traverse a non-directory file as if
|
||||||
|
it were a directory.
|
||||||
Corresponds to :c:data:`errno` ``ENOTDIR``.
|
Corresponds to :c:data:`errno` ``ENOTDIR``.
|
||||||
|
|
||||||
.. exception:: PermissionError
|
.. exception:: PermissionError
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue