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

Pierre pierre.archambault at cognos.com
Tue Oct 15 15:55:26 CEST 2002


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



More information about the Python-list mailing list