fromPath
Creates a KoryFile from a path, verifying that the file exists.
Return
A KoryFile instance.
Parameters
path
The path to the file.
Throws
if the file does not exist.
Samples
// Getting files from path.
val file = KoryFile.fromPath(filePath) // This function can be thrown a FileNotFoundException!
println(file.mimeTypeStr())Content copied to clipboard