Contents

init(filePath:directoryHint:)

Creates a file URL that references a file path.

Declaration

init?(filePath path: FilePath, directoryHint: URL.DirectoryHint = .inferFromPath)

Parameters

  • path:

    The location in the file system.

  • directoryHint:

    A hint to the initializer to indicate whether the path is a directory, or to instruct the initializer to make this determination.

See Also

Creating a file URL from a string path