[Python-ideas] PEP 428 - object-oriented filesystem paths

Antoine Pitrou solipsis at pitrou.net
Sun Oct 7 23:47:18 CEST 2012


On Sun, 7 Oct 2012 22:43:02 +0100
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?

I don't know. How does os.path deal with it?

Regards

Antoine.


-- 
Software development and contracting: http://pro.pitrou.net





More information about the Python-ideas mailing list