Creates a symbolic link that points to the specified destination.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The path at which to create the new symbolic link. The last path component is used as the name of the link.
The path that contains the item to be pointed to by the link. In other words, this is the destination of the link.
If an error occurs, upon return contains an
NSErrorobject that describes the problem. Pass
NULLif you do not want error information.
YES if the symbolic link was created or
NO if an error occurred. This method also returns
NO if a file, directory, or link already exists at
This method does not traverse symbolic links contained in
dest, making it possible to create symbolic links to locations that do not yet exist. Also, if the final path component in
path is a symbolic link, that link is not followed.