Re: Renaming files?
Re: Renaming files?
- Subject: Re: Renaming files?
- From: Clark Cox <email@hidden>
- Date: Wed, 22 Dec 2004 11:35:43 -0500
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.).
--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
_______________________________________________
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