This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.fahlgren
Recipients eric.fahlgren, georg.brandl, jerrykhan, pronovic
Date 2017-06-28.20:59:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1498683565.82.0.0577778485288.issue1495754@psf.upfronthosting.co.za>
In-reply-to
Content
Would it be appropriate to make a comment about this Windows bug in both os.stat and os.path.exists documentation?  I just stumbled upon it independently (both Win7 and 10, both Py 2.7 and 3.6) with nearly the same incantation that Kenneth reported over 10 years ago (exists check success, followed by scandir failure).

[My workaround was to append os.sep to the directory spec:
  os.path.exists(newdir+os.sep) -> False
]

Clearly this behavior is not going away, so it should at least be mentioned somewhere more prominently than on a decade old BPO item...
History
Date User Action Args
2017-06-28 20:59:25eric.fahlgrensetrecipients: + eric.fahlgren, georg.brandl, pronovic, jerrykhan
2017-06-28 20:59:25eric.fahlgrensetmessageid: <1498683565.82.0.0577778485288.issue1495754@psf.upfronthosting.co.za>
2017-06-28 20:59:25eric.fahlgrenlinkissue1495754 messages
2017-06-28 20:59:25eric.fahlgrencreate