Re: Renaming files?
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