Re: File system case sensitivity
Re: File system case sensitivity
- Subject: Re: File system case sensitivity
- From: Jordan Krushen <email@hidden>
- Date: Sat, 18 Jun 2005 11:31:42 -0700
On 6/18/05, Jonathan Fewtrell <email@hidden> wrote:
> My app reads third-party data supplied on CD. The CDs are in ISO 9660
> format (does this matter?). The files and folders follow a strict
> naming pattern, and, relying on this, my app uses NSString path methods
> to find particular files on the CD and copy them to hard disk (HFS+
> format). Originally, CDs were supplied with all file and folder names
> in upper case and I wrote my code accordingly, but I have now found
> that sometimes lower case is used. I thought (OK, hoped) that, because
> the OS X file system is case insensitive, my original code would still
> work. It doesn't.
IIRC, HFS+ is case-insensitive but case-preserving, while ISO 9660 is
both case-sensitive and case-preserving. You're not asking an HFS+
file system (one of your hard drives) for info, you're asking a 9660
filesystem (a CD).
> Any guidance on this would be much appreciated. I don't know whether my
> problem lies with NSString, NSFileManager, the fact that the CD is in
> ISO 9660 format or a simple misunderstanding on my part of the meaning
> of 'case insensitive'. I am hoping I don't have to write tons of extra
> code just to cope with the fact that some CDs are using upper case and
> some lower.
Remember, you're asking the *CD* (non-HFS+) if a file exists at a
certain path, and ISO 9660 probably isn't going to reply that
README.TXT exists, even if readme.txt is there -- that's case
sensitivity.
Ask a case-sensitive filesystem, expect a case-sensitive response :)
HTH,
J.
_______________________________________________
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