os.path.exists() function does not work for http paths

dudeja.rajat at gmail.com dudeja.rajat at gmail.com
Mon Sep 29 10:05:19 EDT 2008


Hi,

I have used os.path.exists() many a times for any file system paths in local
system. But this does not seem to work for an Http path.

e.g:


To check is the Results folder exists at the following path, I do:


if not os.path.exists("http://subversion.myCom.com/Testing/Results"):
    print 'Path does not exist'


This always prints the above print statements whether or not the Results
folder exists or not.

Is there any such function to check existence of files. / folder at Http
paths?


-- 
Thanks and regards,
Rajat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080929/6d34d11f/attachment.html>


More information about the Python-list mailing list