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

Paul Moore p.f.moore at gmail.com
Sun Sep 26 15:06:38 CEST 2010

On 26 September 2010 13:37, James Y Knight <foom at fuhm.net> wrote:
> Were you thinking of SHGetFileInfo?
> http://stackoverflow.com/questions/74451/getting-actual-file-name-with-proper-casing-on-windows

It wasn't, but it looks possible. Only gives the last component,
though, so you still have to walk up the path components :-(

I suspect I was thinking of GetLongFileName, which puts everything
*but* the last component into the right case. I missed the problem
with the last component :-(


More information about the Python-Dev mailing list