VaultTransaction.modify method
VaultTransaction › modify
Replaces the content of a file, capturing the old content so it can be restored on rollback.Signature:
modify(pathOrFile: PathOrAbstractFile, newContent: string): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| pathOrFile | PathOrAbstractFile | The path or file to modify. |
| newContent | string | The new content. |
Returns: Promise<void> — A Promise that resolves when the file is modified.