Is there any chance the file has an extension that Windows is hiding?
Can you get True for other files in the folder?
So, it was the extensions all the way ! Apparently the file extension was
hidden by Windows! It now works.
Thank you all for your suggestions and help.
-iyer
Iyer wrote:
So, it was the extensions all the way ! Apparently the file extension
was hidden by Windows! It now works.
I have never understood Microsoft changing things from one release to
another. In the beginning extensions were IIRC always visible.
Every time I configure a computer I have
I have never understood Microsoft changing things from one release to
another. In the beginning extensions were IIRC always visible.
Every time I configure a computer I have to spend a lot of time undoing
the initial settings so my users can get their work done!
Even though I completely
Hi.
Granted, all of these are just visual sugar and are completely worthless.
But they have provided Microsoft with much money because more useless people
can use computers. It is because these people do not wish to learn, do not
have the capacity, or just plain would rather pay through their
Granted, all of these are just visual sugar and are completely worthless.
But they have provided Microsoft with much money because more useless
people
can use computers. It is because these people do not wish to learn, do
not
have the capacity, or just plain would rather pay through their
Iyer wrote:
Adam wrote:
From the library documentation:
Return True if path refers to an existing path. Returns False for
broken symbolic links. On some platforms, this function may return
False if permission is not granted to execute os.stat() on the
requested
os.path.exists(path) returns false when the path actually exists!
When I do this:
os.path.exists(c:\\winnt\\file_name)
I get this:
False
Actually the file exists in c:\winnt, and I can confirm it exists there, but
os.path.exists isn't returning True, when it should be..
Is this
Adam wrote:
From the library documentation:
Return True if path refers to an existing path. Returns False for
broken symbolic links. On some platforms, this function may return
False if permission is not granted to execute os.stat() on the
requested file, even if the path physically exists.
So
os.path.exists(path) returns false when the path actually exists!
When I do this:
os.path.exists(c:\\winnt\\file_name)
I get this:
False
Actually the file exists in c:\winnt, and I can confirm it exists
there, but os.path.exists isn't returning True, when it should be..