Instance Method

pathContentOfSymbolicLinkAtPath:

Returns the path of the directory or file that a symbolic link at a given path refers to.

Declaration

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

Parameters

path

The path of a symbolic link.

Return Value

The path of the directory or file to which the symbolic link path refers, or nil upon failure. If the symbolic link is specified as a relative path, that relative path is returned.

Discussion

Because this method does not return error information, it has been deprecated as of OS X v10.5. Use destinationOfSymbolicLinkAtPath:error: instead.

See Also

Related Symbols

- destinationOfSymbolicLinkAtPath:error:

Returns the path of the item pointed to by a symbolic link.

- createSymbolicLinkAtPath:withDestinationPath:error:

Creates a symbolic link that points to the specified destination.