Message7472
os.path.isdir returns False for network share while os.listdir returns the contents of the directory. Running os.path.isdir from python returns True for same path.
See below:
Jython 2.5.3 (2.5:c56500f08d34+, Aug 13 2012, 14:48:36)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_31
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.listdir('\\\\localhost\\temp')
['aNew Text Document.txt', 'New folder']
>>> os.path.isdir('\\\\localhost\\temp')
False
D:\iE2>python
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.listdir('\\\\localhost\\temp')
['aNew Text Document.txt', 'New folder']
>>> os.path.isdir('\\\\localhost\\temp')
True |
|
Date |
User |
Action |
Args |
2012-10-08 21:36:11 | wayju | set | recipients:
+ wayju |
2012-10-08 21:36:11 | wayju | set | messageid: <1349732171.16.0.299113527358.issue1975@psf.upfronthosting.co.za> |
2012-10-08 21:36:10 | wayju | link | issue1975 messages |
2012-10-08 21:36:10 | wayju | create | |
|