Re: File system case sensitivity
Re: File system case sensitivity
- Subject: Re: File system case sensitivity
- From: Stéphane Sudre <email@hidden>
- Date: Sat, 18 Jun 2005 22:35:16 +0200
On samedi, juin 18, 2005, at 06:59 PM, Cameron Hayne wrote:
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").
Just for the record, there is a dot. It's added by
stringByAppendingPathExtension:.
stringByAppendingPathExtension:TXT
_______________________________________________
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