New submission from Wayne Thomson:
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
----------
components: Core
messages: 7472
nosy: wayju
severity: normal
status: open
title: os.path.isdir fails on network share (windows)
type: behaviour
versions: 2.5.1, 2.5.2, 2.5.3b2
_______________________________________
Jython tracker <report@...>
<http://bugs.jython.org/issue1975>
_______________________________________
|