Companion

object Companion

Functions

Link copied to clipboard
fun create(path: String, rewriteExists: Boolean = false, block: (KoryFile) -> Unit? = null): KoryFile

Creates a new file at the given path and runs the given block on it.

Link copied to clipboard

Creates a KoryFile from a path, verifying that the file exists.

Link copied to clipboard

Creates a KoryFile from a path, wrapping the result in a Result.