python 2.7.12 on Linux behaving differently than on Windows

Chris Angelico rosuav at gmail.com
Wed Dec 7 15:52:54 EST 2016


On Thu, Dec 8, 2016 at 7:17 AM, eryk sun <eryksun at gmail.com> wrote:
> On Wed, Dec 7, 2016 at 12:39 PM, Chris Angelico <rosuav at gmail.com> wrote:
>> Note that two of the Beauty Stone tracks include quotes as well as
>> question marks. How do you identify those? Let's say you want to play
>> one of these in VLC, and then maybe you decide that the track in
>> Pirates of Penzance/MusicOnly is slightly mis-cropped, so you rebuild
>> it from the one in the parent directory. How does that work on
>> Windows? If you say "it doesn't", then (a) you have taken away choice
>> on a fundamental level, (b) you have your head in the sand, and (c)
>> you still haven't solved the problem of percent signs, carets, and so
>> on, which are perfectly legal in file names, but have meaning to the
>> shell.
>
> The five wildcard characters ("<>*?) aren't allowed in the names of
> files and directories -- at least not by any Windows filesystem that
> I've used. This makes it easy for a filesystem to support globbing in
> its implementation of NtQueryDirectoryFile.

Yep - see my last sentence in the quoted paragraph.

ChrisA


More information about the Python-list mailing list