scan WIN directories with UNC pathnames

Thomas Rademacher rademacher at
Mon Jul 26 14:30:32 CEST 2004


my application want to scan WIN directories with UNC pathnames.

The methods os.path.isdir(pathname) and os.listdir(pathname) work fine with
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

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

Tnank's for your hints Thomas

More information about the Python-list mailing list