scan WIN directories with UNC pathnames

Thomas Rademacher rademacher at prostep.FTA-berlin.de
Mon Jul 26 08:30:32 EDT 2004


Hallo,

my application want to scan WIN directories with UNC pathnames.

The methods os.path.isdir(pathname) and os.listdir(pathname) work fine with
pathname="\\\\servername\\path".
But with the argument pathname="\\\\servername" the method
os.path.isdir(pathname) returns 0 and the method os.listdir(pathname) raises
an exception.

What is the reason? And how can I scan such UNC directories
(pathname="\\\\servername")?

I must work with python2.2 WITHOUT additional modules (win32wnet, ...).

Tnank's for your hints Thomas





More information about the Python-list mailing list