Contents

destinationOfSymbolicLink(atPath:)

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

Declaration

func destinationOfSymbolicLink(atPath path: String) throws -> String

Parameters

  • path:

    The path of a file or directory.

Return Value

An NSString object containing the path of the directory or file to which the symbolic link path refers. When using Objective-C, returns nil upon failure. If the symbolic link is specified as a relative path, that relative path is returned.

Discussion

See Also

Creating symbolic and hard links