[Python-Dev] Mac questions (original) (raw)
Jack Jansen Jack.Jansen at cwi.nl
Tue Jan 4 13:42:26 CET 2005
- Previous message: [Python-Dev] Mac questions
- Next message: [Python-Dev] Mac questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 4 Jan 2005, at 11:41, Bob Ippolito wrote:
And finally: Is there any other way to find the true spelling of a file except than a linear search with opendir()/readdir()/closedir() ? Yes, definitely. I'm positive you can do this with CoreServices, but I'm not sure it's portable to Darwin (not Mac OS X). I'm sure there is some Darwin-compatible way of doing it, but I don't know it off the top of my head. I'll try to remember to look into it if nobody else finds it first.
I haven't used pure darwin, but I assume it has support for FSRefs, right? Then you could use FSPathMakeRef() to turn the filename into an FSRef, and then FSGetCatalogInfo() to get the true filename.
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman
- Previous message: [Python-Dev] Mac questions
- Next message: [Python-Dev] Mac questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]