Contents

pathContentOfSymbolicLink(atPath:)

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

Declaration

func pathContentOfSymbolicLink(atPath path: String) -> String?

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 destinationOfSymbolicLink(atPath:) instead.

See Also

Related Documentation

Deprecated Methods