replace

abstract fun replace(root: String, relativePath: String, content: String): Boolean

Overwrites an existing regular file's content. Refuses (false) when there is nothing there yet.