Message275964
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. |
|
Date |
User |
Action |
Args |
2016-09-12 05:08:38 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower |
2016-09-12 05:08:37 | eryksun | set | messageid: <1473656917.54.0.609329430515.issue27827@psf.upfronthosting.co.za> |
2016-09-12 05:08:37 | eryksun | link | issue27827 messages |
2016-09-12 05:08:37 | eryksun | create | |
|