Re: File system case sensitivity
Re: File system case sensitivity
- Subject: Re: File system case sensitivity
- From: Jonathan Fewtrell <email@hidden>
- Date: Sun, 19 Jun 2005 11:22:26 +0100
On 18 Jun 2005, at 18:31, Chris Parker wrote:
Filesystems are case-insensitive or case-insensitive depending on what
semantics the filesystem itself defines.
HFS+ is case-insensitive and case-preserving.
NTFS is case-insensitive and case-preserving (if I recall correctly).
UFS is case-sensitive.
ISO9600 is case-sensitive.
Case-preserving is (sort of) a funny thing - if you've got a file
"readme.txt" and you rename it "readMe.TxT" that works.
If you have a file named "readme.txt" and you try to save a new file
called "READme.TXT" in the same directory, it'll collide, though -
they're the same name once you smash case.
Thanks; this is a helpful summary.
Well, if these are CDs for which you have control or communication
with the source of the data, suggesting that they're consistent in
their discipline for case is one approach. :)
Yes; I've done that. Unfortunately, I suspect I'm too late.
If you're dealing with third party CDs over which you have no control,
you probably want to consider using something like directory
enumeration (see NSDirectoryEnumerator - it's much faster than it used
to be) and downcase the filenames you get (i.e. make it effectively
case-insensitive for your purposes).
OK. I'll take a look at this avenue. I suppose I was sort of hoping
that somewhere in the Cocoa frameworks was lurking a nifty method along
the lines of: [[NSFileManager defaultManager] fileExistsAtPath:path
ignoreCase:YES]
Pity!
Anyway, many thanks to all who responded.
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden