createFile

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

Creates a new file and adds it to the upload list.

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