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 16:08:31 -0400 (EDT)
On Sat, 15 Jun 2002, Clark Mueller wrote:
>
If I have a file whose path is ~/Desktop/foo.txt, and I am given a
>
reference to it with no particular capitalization (i.e.
>
~/desktop/foo.txt), can I resolve that string to the proper
>
capitalization? Indeed, Cocoa methods which do things with files are
>
mostly not case sensitive, but I would like to present that path to
>
the user in the way that it is supposed to be.
WHat do you want to do if the path is on a filesystem which is case
sensitive (like UFS)? In such a case, it would be a statement of truth
that ~/desktop didn't exist even if ~/Desktop did. What if there were
two files under ~/Desktop named foo.txt and FOO.txt?
-ben
--
Ben Kennedy, chief magician
zygoat creative technical services
http://www.zygoat.ca
_______________________________________________
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.