Contents

init(url:options:)

Initializes a file wrapper instance whose kind is determined by the type of file-system node located by the URL.

Declaration

init(url: URL, options: FileWrapper.ReadingOptions = []) throws

Parameters

  • url:

    URL of the file-system node the file wrapper is to represent.

  • options:

    Option flags for reading the node located at url. See Readingoptions for possible values.

Return Value

File wrapper for the file-system node at url. May be a directory, file, or symbolic link, depending on what is located at the URL. Returns false (0) if reading is not successful.

Discussion

If url is a directory, this method recursively creates file wrappers for each node within that directory. Use the fileWrappers property to get the file wrappers of the nodes contained by the directory.

See Also

Related Documentation

Creating File Wrappers