Contents

symbolicLinkDestinationURL

The URL referenced by the file wrapper object, which must be a symbolic-link file wrapper.

Declaration

var symbolicLinkDestinationURL: URL? { get }

Discussion

This property may contain nil if the user modifies the symbolic link after you call read(from:options:) or init(url:options:) but before FileWrapper has read the contents of the link. Use the immediate reading option to reduce the likelihood of that problem.

Special Considerations

This property raises NSInternalInconsistencyException if the file wrapper object is not a symbolic-link file wrapper.

See Also

Accessing File-Wrapper Information