• 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: Properly capitalizing a path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Properly capitalizing a path (From: Clark Mueller <email@hidden>)

  • Prev by Date: Properly capitalizing a path
  • Next by Date: Re: Properly capitalizing a path
  • Previous by thread: Properly capitalizing a path
  • Next by thread: Re: Properly capitalizing a path
  • Index(es):
    • Date
    • Thread