[Python-ideas] PEP 428 - object-oriented filesystem paths
Ronald Oussoren
ronaldoussoren at mac.com
Mon Oct 8 12:00:22 CEST 2012
On 7 Oct, 2012, at 23:43, Arnaud Delobelle <arnodel at gmail.com> wrote:
> On 7 October 2012 18:37, Antoine Pitrou <solipsis at pitrou.net> wrote:
>> Pure comparison already obeys case-sensitivity rules as well as the
>> different path separators:
>>
>>>>> PureNTPath('a/b') == PureNTPath('A\\B')
>> True
>>>>> PurePosixPath('a/b') == PurePosixPath('a\\b')
>> False
>
> Naive question: how do you deal with HFS+, which is case-preserving
> but on most machines case-insensitive?
Or CIFS filesystems mounted on a Linux? Case-sensitivity is a file-system property, not a operating system one.
Ronald
More information about the Python-ideas
mailing list