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 eryksun
Recipients eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2016-09-12.05:08:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473656917.54.0.609329430515.issue27827@psf.upfronthosting.co.za>
In-reply-to
Content
The attached patch adds tests and the suggested enhancement to _WindowsFlavour.is_reserved. 

Shouldn't it also return True if the name contains ASCII control characters? They're only valid in NTFS stream names. Also, I think a name containing a colon that's not part of a DOS drive letter spec should be considered reserved. Otherwise it could designate an NTFS named stream (e.g. "path\filename:streamname:$DATA"), which is rarely desired and not universally supported, e.g. FAT32 doesn't support file streams. I'm thinking of a program that calls this method to ensure that a path is reasonably 'safe' for use on Windows -- i.e. isn't inherently invalid and won't do something surprising like open NUL or write to a named stream.
History
Date User Action Args
2016-09-12 05:08:38eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower
2016-09-12 05:08:37eryksunsetmessageid: <1473656917.54.0.609329430515.issue27827@psf.upfronthosting.co.za>
2016-09-12 05:08:37eryksunlinkissue27827 messages
2016-09-12 05:08:37eryksuncreate