Vote UpVote

Case Sensitive File System on OSX

Chris Bensen – I recently had to determine if the file system was case sensitive on OSX. It was actually throw away work but figured I'd post it to my blog in case anyone else out there needed to do the same thing and didn't want to start from scratch. #include <CoreServices/CoreServices.h> #include <CoreFoundation/CFString.h> BOOL IsFileSystemCaseSensitive(const char* path) { FSRef ref; FSCatalogInfo info; GetVolParmsInfoBuffer buffer; if ((FSPathMakeRef((const UInt8*)path, &ref;, NULL) == noErr) && (FSGetCatalogInfo(&ref;, kFSCatInfoVolume, &info;, NULL, NULL, NULL) == noErr) ...
Favorite? Off-Topic? noreply@blogger.com @ 2010-10-11 16:00


Visits: 494
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)