• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: File system case sensitivity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: File system case sensitivity
      • From: Stéphane Sudre <email@hidden>
References: 
 >File system case sensitivity (From: Jonathan Fewtrell <email@hidden>)

  • Prev by Date: Missing attributes from iCal schema
  • Next by Date: Fast User Switching Effects
  • Previous by thread: File system case sensitivity
  • Next by thread: Re: File system case sensitivity
  • Index(es):
    • Date
    • Thread