Message9505
This has been reworked in the latest Jython 2.7.0 trunk, soon to be a final beta 4; see https://hg.python.org/jython/rev/8b2db200158f and related earlier commits
os.path.isdir is defined as follows:
def isdir(path):
"""Test whether a path is a directory"""
try:
st = os.stat(path)
except os.error:
return False
return stat.S_ISDIR(st.st_mode)
Consequently we are now depending on Files.readAttributes(absolutePath, DosFileAttributes.class) to be correct for network shares, which is almost certainly the case since this is in Java itself.
It would be helpful to have independent verification. |
|
Date |
User |
Action |
Args |
2015-02-08 06:23:31 | zyasoft | set | messageid: <1423376611.54.0.621879678731.issue1975@psf.upfronthosting.co.za> |
2015-02-08 06:23:31 | zyasoft | set | recipients:
+ zyasoft, fwierzbicki, pekka.klarck, pjenvey, wayju |
2015-02-08 06:23:31 | zyasoft | link | issue1975 messages |
2015-02-08 06:23:31 | zyasoft | create | |
|