init(fileURLWithPath:isDirectory:)
Creates a file URL that references the local file or directory at the given path.
Declaration
init(fileURLWithPath path: String, isDirectory: Bool)Parameters
- path:
The location in the file system.
- isDirectory:
A Boolean value that indicates whether the location is a directory.
Discussion
If the path is an empty string, the system interprets it as “.”.