os.path.exists(//server/share) returns false when it should return true...

Mike Rovner mike at bindkey.com
Tue Oct 15 14:43:42 EDT 2002


As a hack ;) try
os.path.exists('//computer/share//')

Cheers,
Mike

"Pierre" <pierre.archambault at cognos.com> wrote in message
news:7264ab63.0210150555.32c39d40 at posting.google.com...
> Has anyone come across problems on win2k with the os.path module?
>
> Problem description:
>
> Create a share with read/write permissions such as - //computer/share
> os.path.exists(//computer/share) should return "true".
> Instead it returns "false" no matter what permissions are set.
>
> The only work around I have found is to call it this way -
> os.path.exists(//computer/share/folder) returns "true".
>
> Is this a python problem or is it that the module doesn't work well
> with UNC paths?
>
> Any suggestions will be greatly appreciated.
>
> Pierre
> --
> http://mail.python.org/mailman/listinfo/python-list
>








More information about the Python-list mailing list