destinationOfSymbolicLink(atPath:)
Returns the path of the item pointed to by a symbolic link.
Declaration
func destinationOfSymbolicLink(atPath path: String) throws -> StringParameters
- 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.