Message7472

Author wayju
Recipients wayju
Date 2012-10-08.21:36:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349732171.16.0.299113527358.issue1975@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2012-10-08 21:36:11wayjusetrecipients: + wayju
2012-10-08 21:36:11wayjusetmessageid: <1349732171.16.0.299113527358.issue1975@psf.upfronthosting.co.za>
2012-10-08 21:36:10wayjulinkissue1975 messages
2012-10-08 21:36:10wayjucreate