Initializes a newly created NSURL referencing the local file or directory at
- iOS 2.0+
- macOS 10.5+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The path that the NSURL object will represent.
pathshould be a valid system path, and must not be an empty path. If
pathbegins with a tilde, it must first be expanded with
By Expanding Tilde In Path
pathis a relative path, it is treated as being relative to the current working directory.
A Boolean value that specifies whether
pathis treated as a directory path when resolving against relative path components. Pass
pathindicates a directory,
An NSURL object initialized with