init(filePath:directoryHint:relativeTo:)
Creates a file URL that references a path you specify as a string.
Declaration
init(filePath path: String, directoryHint: URL.DirectoryHint = .inferFromPath, relativeTo base: URL? = nil)Parameters
- path:
The location in the file system, as a string.
- directoryHint:
A hint to the initializer to indicate whether the path is a directory, or to instruct the initializer to make this determination.
- base:
A URL that provides a file system location that the path extends.