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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4