[Tutor] os.path.exists(path) returns false when the path actually exists!

Iyer maseriyer at yahoo.com
Tue Jul 31 02:00:42 CEST 2007



Just to check, try to do away with the backslashes. Windows will accept 
a path with forward slashes just as well:

os.path.exists("c:/winnt/file_name")

Nope, even, with the use of forward slashes in the path, it still returns false 
 
 What am I doing wrong here ?
 
 This is driving me nuts! 
 
 -iyer

       
---------------------------------
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070730/60f97e4f/attachment.htm 


More information about the Tutor mailing list