createSymbolicLink(atPath:pathContent:)
Creates a symbolic link identified by a given path that refers to a given location.
Declaration
func createSymbolicLink(atPath path: String, pathContent otherpath: String) -> BoolParameters
- path:
The path for a symbolic link.
- otherpath:
The path to which
pathshould refer.
Return Value
true if the operation is successful, otherwise false. Returns false if a file, directory, or symbolic link identical to path already exists.
Discussion
Creates a symbolic link identified by path that refers to the location otherPath in the file system.
Special Considerations
Because this method does not return error information, it has been deprecated as of OS X v10.5. Use createSymbolicLink(atPath:withDestinationPath:) instead.
See Also
Related Documentation
removeItem(atPath:)destinationOfSymbolicLink(atPath:)createSymbolicLink(atPath:withDestinationPath:)
Deprecated Methods
changeFileAttributes(_:atPath:)fileAttributes(atPath:traverseLink:)fileSystemAttributes(atPath:)directoryContents(atPath:)createDirectory(atPath:attributes:)pathContentOfSymbolicLink(atPath:)fileManager(_:shouldProceedAfterError:)fileManager(_:willProcessPath:)replaceItemAtURL(originalItemURL:withItemAtURL:backupItemName:options:)