Python IOError exception when creating a long file
问题 I get an IOError shown below when trying to open a new file using "open (fname, 'w+')". The complete error message is below. The file does not exist, but I verified using "os.access(dir_name, os.W_OK)" and "os.path.exists (dir_name)" that the parent directory for the file does exist. I am wondering if the file name is just too long for Windows, or if I am doing something wrong. Any tips would be appreciated. Thank you very much. Error message: IOError: [Errno 2] No such file or directory: 'C: