problems with os.path.isdir on windows shares (i've read the FAQ)

todd smith todcsmith at yahoo.com
Fri Jan 16 18:45:38 EST 2004


having some strange problems with Python2.3 on windowsXP. im trying
to access shares and the os.path.isdir function _always_ returns false
even though the directories are there and i can os.chdir, os.listdir it 
in the python shell. i've followed the FAQs rule of putting the trailing '\\' 
on the share name with no luck

heres my sessioin:

>>> os.path.isdir('\\\\ren\\backup\\')
False
>>> os.chdir('\\\\ren\\backup\\')
>>> os.getcwd()
'\\\\ren\\backup'
>>> os.listdir(os.getcwd())
['ssbackup-16-1-2004.ssa', 'ssbackuptest-14-1-2004.ssa', 'tmp']



More information about the Python-list mailing list