Edit a file by replacing string occurrences.
Uses downloadFiles() to read, performs string replacement in TypeScript, then uploadFiles() to write back. No runtime needed on the sandbox host.
edit(
filePath: string,
oldString: string,
newString: string,
replaceAll: boolean
): Promise<EditResult>| Name | Type | Description |
|---|---|---|
filePath* | string | |
oldString* | string | |
newString* | string | |
replaceAll | boolean |