Initializes and returns a newly created NSURL object as a file URL with a specified path.
- iOS 2.0+
- macOS 10.5+
- tvOS 9.0+
- watchOS 2.0+
- Mac Catalyst 13.0+Beta
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
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