Filename case-insensitivity on OS X

"Martin v. Löwis" martin at v.loewis.de
Tue Jan 3 18:53:28 EST 2006


Tom Anderson wrote:
> Java has a java.io.File.getCanonicalPath method that does this, but i
> can't find an equivalent in python - is there one?
> 
> I can emulate it like this:

I think it could be implemented more efficiently with getattrlist(2),
looking for ATTR_CMN_NAME. Unfortunately, there appears to be no wrapper
for this function.

Alternatively, you might also find macos.GetFullPathname useful,
although I'm uncertain as to how precisely it is used.

Regards,
Martin



More information about the Python-list mailing list