• 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: Sym Links and NSFileManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sym Links and NSFileManager


  • Subject: Re: Sym Links and NSFileManager
  • From: Chris Parker <email@hidden>
  • Date: Mon, 15 Aug 2005 18:57:31 -0700

Hi Greg,

On Aug 15, 2005, at 6:32 PM, Greg wrote:

I am using NSFileManager to enumerate over some files and have come across something that I cannot seem to figure out.

When you determine that a file is a symbolic link, how can you get the target of that link using the NSFileManager methods?

NSFileManager has a couple of methods that manipulate symlinks - I believe the one you're looking for is this:


http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSFileManager.html#//apple_ref/doc/uid/20000305- CHDDBAHC

pathContentOfSymbolicLinkAtPath:
- (NSString *)pathContentOfSymbolicLinkAtPath:(NSString *)path

Returns the actual path of the directory or file that the symbolic link path refers to. Returns nil upon failure.

.chris

--
Chris Parker
Cocoa Frameworks
Apple Computer, Inc.

_______________________________________________
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


References: 
 >Sym Links and NSFileManager (From: Greg <email@hidden>)

  • Prev by Date: Sym Links and NSFileManager
  • Next by Date: applicationDidFinishLaunching not called?
  • Previous by thread: Sym Links and NSFileManager
  • Next by thread: applicationDidFinishLaunching not called?
  • Index(es):
    • Date
    • Thread