[Python-Dev] os.path.normcase rationale?

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Sep 25 00:10:48 CEST 2010

Paul Moore wrote:

> I dug into this once, and as far as I could tell, it's possible to get
> the information on Windows, but there's no way on Linux to "ask the
> filesystem".

Maybe we could use a heuristic such as:

1) Search the directory for an exact match to the name given,
return it if found.

2) Look for a match ignoring case. If one is found, test it to
see if it refers to the same file as the given path, and if so
return it.

3) Otherwise, raise an exception.


More information about the Python-Dev mailing list