Message4956

Author crankycoder
Recipients crankycoder
Date 2009-07-28.18:06:41
SpamBayes Score 1.2482649e-09
Marked as misclassified No
Message-id <1248804402.23.0.912352279328.issue1414@psf.upfronthosting.co.za>
In-reply-to
Content
os.path.exists returns False incorrectly for some UNC directories. I'm
not sure what the particular reasons are.  This is inconsistent with at
least CPython 2.5

For example in CPython 2.5.2:

>>> import os
>>> os.path.exists(u'\\\\cbmcc-fn-00020c\\1202\\RTMO')
True
>>> os.path.exists(u'\\\\cbmcc-fn-00020c\\1202\\RTMO\\')

Jython 2.5.0:

>>> import os
>>> os.path.exists(u'\\\\cbmcc-fn-00020c\\1202\\RTMO')
False
>>> os.path.exists(u'\\\\cbmcc-fn-00020c\\1202\\RTMO\\')
False

This is inconsitent even in Jython - sometimes, I get True, sometime
False.  For example - a different directory will report True for the
path without the trailing slash, but False for the path with the
trailing slash.
History
Date User Action Args
2009-07-28 18:06:42crankycodersetrecipients: + crankycoder
2009-07-28 18:06:42crankycodersetmessageid: <1248804402.23.0.912352279328.issue1414@psf.upfronthosting.co.za>
2009-07-28 18:06:42crankycoderlinkissue1414 messages
2009-07-28 18:06:41crankycodercreate