Author eryksun
Recipients eryksun, ldconejo, paul.moore, steve.dower, tim.golden, zach.ware
Date 2021-03-01.13:02:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614603727.4.0.324400942003.issue33105@roundup.psfhosted.org>
In-reply-to
Content
I'm closing this as not a bug. If the process limits DOS paths to MAX_PATH, then checking os.path.isfile() should not be special cased to support longer DOS paths because calling open() on such a path will raise FileNotFoundError. My suggestion in msg314126 to have stat() fall back on querying the directory in this case is too magical, even if it does make os.stat() more consistent with os.listdir() and the stat result from os.scandir().
History
Date User Action Args
2021-03-01 13:02:07eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, ldconejo
2021-03-01 13:02:07eryksunsetmessageid: <1614603727.4.0.324400942003.issue33105@roundup.psfhosted.org>
2021-03-01 13:02:07eryksunlinkissue33105 messages
2021-03-01 13:02:06eryksuncreate