Initializes a file wrapper instance whose kind is determined by the type of file-system node located by the URL.
- iOS 4.0+
- macOS 10.6+
- tvOS 9.0+
- watchOS 2.0+
URL of the file-system node the file wrapper is to represent.
Option flags for reading the node located at
NSFilefor possible values.
Wrapper Reading Options
If an error occurs, upon return contains an
NSErrorobject that describes the problem. Pass
NULLif you do not want error information.
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
NO (0) if reading is not successful.
url is a directory, this method recursively creates file wrappers for each node within that directory. Use the
file property to get the file wrappers of the nodes contained by the directory.