createFile

fun createFile(filePath: String, rewriteExists: Boolean = false, block: (KoryFile) -> Unit)

Creates a new file at the given path and sets it for upload.

Parameters

filePath

The path to create the file at.

rewriteExists

If true, overwrites an existing file. Defaults to false.

block

Callback invoked with the created KoryFile.

Throws