Contents

init(symbolicLinkWithDestinationURL:)

Initializes the receiver as a symbolic-link file wrapper that links to a specified file.

Declaration

init(symbolicLinkWithDestinationURL url: URL)

Parameters

  • url:

    URL of the file the file wrapper is to reference.

Return Value

Initialized symbolic-link file wrapper referencing url.

Discussion

The file wrapper is not associated with a file-system node until you save it using write(to:options:originalContentsURL:).

The file wrapper is initialized with open permissions: anyone can modify or read the file reference. .

See Also

Related Documentation

Creating File Wrappers