writeToFile

fun writeToFile(filePath: String, text: ByteArray): Response<*>

Writes plain text to USS file. Creates new if not exist

Return

http response object

Parameters

filePath

path of the file or directory (e.g. u/jiahj/text.txt)

text

plain text to be written to file

Throws

error processing request