Skip to main content

updateFile

codebolt.fs.updateFile(filename: string, filePath: string, newContent: string): Promise<UpdateFileResponse>

Parameters

NameTypeDescription
filenamestringThe name of the file to update.
filePathstringThe path of the file to update.
newContentstringThe new content to write into the file.

Returns:

 Promise<UpdateFileResponse>
A promise that resolves with the server response.

Status

Comming soon...