에러 코드 포털
PythonPython오류 코드

NotADirectoryError

NotADirectoryError

디렉터리가 필요한 작업에 다른 종류의 경로를 사용한 경우입니다.

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.

해결·진단 링크

문서의 제품·버전·발생 환경이 현재 상황과 일치하는지 먼저 확인하세요.