Contents

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) -> Bool

Parameters

  • path:

    The path for a symbolic link.

  • otherpath:

    The path to which path should 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

Deprecated Methods