Contents

writeBookmarkData(_:to:)

Creates an alias file on disk at a specified location with specified bookmark data.

Declaration

static func writeBookmarkData(_ data: Data, to url: URL) throws

Discussion

The data must have been created with the suitableForBookmarkFile option. The url must either refer to an existing file (which will be overwritten), or to location in an existing directory.

See Also

Creating bookmarks