Re: File system case sensitivity
Re: File system case sensitivity
- Subject: Re: File system case sensitivity
- From: Cameron Hayne <email@hidden>
- Date: Sat, 18 Jun 2005 12:59:56 -0400
On 18-Jun-05, at 11:30 AM, Jonathan Fewtrell wrote:
File on CD used to be named README.TXT. Now it is readme.txt;
cdName is the name of the CD volume;
README and TXT are defined as @"README" and @"TXT" respectively.
A typical bit of my code might be:
NSString *path;
path = [[cdName stringByAppendingPathComponent:README]
stringByAppendingPathExtension:TXT];
[[NSFileManager defaultManager] fileExistsAtPath:path] previously
returned YES; now it returns NO.
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'.
You should add an NSLog statement to print out the value of 'path' -
that will tell you if the problem is with your NSString methods.
In the example code above, you seem to have left out the dot (of
".TXT").
After you see what the 'path' is, copy and paste that into a Terminal
window 'ls -l' command to see if the file exists. That should show
you what is going wrong.
--
Cameron Hayne
email@hidden
_______________________________________________
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