Re: Sym Links and NSFileManager
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