• 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: Renaming files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Renaming files?


  • Subject: Re: Renaming files?
  • From: Jeremy Dronfield <email@hidden>
  • Date: Wed, 22 Dec 2004 17:54:24 +0000


On 22 Dec 2004, at 4:35 pm, Clark Cox wrote:

On Wed, 22 Dec 2004 14:03:42 +0000, Jeremy Dronfield
<email@hidden> wrote:

For filename/path comparisons of the kind you're doing, use a case-insensitive compare. There is another reason for this: the file system is case-insensitive. -isEqualToString: will tell you that "myImage.jpg", "MyImaGe.jpg" and "MYIMAGE.JPG" are all different, whereas the file system considers them identical.

Without checking the format of the volume, one cannot assume that pathnames are case-insensitive, even on MacOSX. Several volume formats supported by the Mac are case-*sensitive* (UFS, CIFS, NFS, WebDAV, case-sensitive-HFS+, etc.).

You're right. I was assuming HFS+. Thanks for pointing that out.

Regards,
Jeremy

_______________________________________________
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


References: 
 >Renaming files? (From: Christoffer Lerno <email@hidden>)
 >Re: Renaming files? (From: Jeremy Dronfield <email@hidden>)
 >Re: Renaming files? (From: Christoffer Lerno <email@hidden>)
 >Re: Renaming files? (From: Jeremy Dronfield <email@hidden>)
 >Re: Renaming files? (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: Renaming files?
  • Next by Date: Creating black and white image
  • Previous by thread: Re: Renaming files?
  • Next by thread: Re: Renaming files?
  • Index(es):
    • Date
    • Thread