Error Code Portal
PythonPythonError code

NotADirectoryError

NotADirectoryError

Code NotADirectoryError · An issue reported by Python.

Raised when a directory operation (such as os.listdir()) is requested on 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 errno ENOTDIR.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.