• 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: Case sensitive fileName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Case sensitive fileName


  • Subject: Re: Case sensitive fileName
  • From: "gMail.com" <email@hidden>
  • Date: Mon, 29 Mar 2010 15:24:41 +0200
  • Thread-topic: Case sensitive fileName

Hi,
I have finally realized that the API "realpath" traverses the sym links.
And I need to not to traverse them. Any other idea? Thanks.

displayNameAtPath is not suitable because it translates paths like
"/Applications"

stringByStandardizingPath is not suitable because it could traverse
SymLinks.


--
Leonardo


> Da: Jens Alfke <email@hidden>
> Data: Wed, 17 Mar 2010 09:07:26 -0700
> A: "gMail.com" <email@hidden>
> Cc: <email@hidden>
> Oggetto: Re: Case sensitive fileName
>
>
> On Mar 17, 2010, at 6:35 AM, gMail.com wrote:
>
>> Now I need to get its real case sensitive file name, which is indeed e.g.
>>   "FileName.txt"
>> How can I get it in a fast way? I thought by its inode, but I can't really
>> know how to do that.
>
> Have you tried -[NSString stringByStandardizingPath], or the BSD function
> realpath()? The docs don¹t explicitly say they correct case, but it seems like
> the kind of thing they would do.
>
> ‹Jens


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Case sensitive fileName
      • From: Jens Alfke <email@hidden>
References: 
 >Re: Case sensitive fileName (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Class Message
  • Next by Date: "-forwardInvocation:" like NSInvocation creation
  • Previous by thread: Re: Case sensitive fileName
  • Next by thread: Re: Case sensitive fileName
  • Index(es):
    • Date
    • Thread