I have the following Python 3.2 script:
f = open('C:/foo/bar/baz/text.txt')
this causes a file not found exception:
ileNotFoundError: [Errno 2] No such file or directory: 'C:/foo/bar/baz/text.txt'
However taking that same path and pasting it into Windows explorer opens the file just fine. What am I missing within my environment on Windows 7?
I realized the issue after running
icaclson the command line:The file that
icaclsfinds was actuallytext.txt.txt. The odd part was that windows was still able to find it.