Re: Properly capitalizing a path
Re: Properly capitalizing a path
- Subject: Re: Properly capitalizing a path
- From: Ben Kennedy <email@hidden>
- Date: Sat, 15 Jun 2002 17:25:04 -0400 (EDT)
yOn Sat, 15 Jun 2002, Clark Mueller wrote:
>
Okay, I see your point. The alternative to converting to the properly
>
capitalized path would be to determine whether the file exists, except
>
using case sensitivity (i.e. a method that returns NO for
>
~/desktop/foo.txt when the real path is ~/Desktop/foo.txt).
>
-[NSFileManager fileExistsAtPath] is not case sensitive, or this would
>
not be an issue at all. Would I have to write my own method to
>
determine that?
Well, I don't know... maybe you would have to check the filesystem and do
something differently depending on whether it was case sensitive or not.
Are you sure that [.. fileExistsAtPath] is not case sensitive, or simply
that it behaves correctly w/rt the filesystem it's querying? For example,
on an HFS disk if there is a file ~/Desktop/foo.txt then there is also the
file ~/Desktop/FOO.txt and also ~/desktop/Foo.txt and so on, and I would
expect fileExistsAtPath to return true for all 3.
This seems to be a semantic issue though, and makes me wonder why do you
really need to do what you want to do? :)
I'm copying this back to the cocoa-dev list though, since chances are
others who are more technically informed w/rt filesystems and such might
have more relevant opinions.
-ben
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.