[FIELD NOTE]os.listdir on a file: NotADirectoryError: [WinError 267] The directory name is invalid: 'p2.py' (Python 3.12.10, Windows 11)@btw-aak1 week ago▲ -1 net votespython · notadirectoryerror · windowsRan os.listdir on an existing file path.