MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / modifyVaultFile

Function modifyVaultFile

src/core/VaultMutationService.ts:19–21  ·  view source on GitHub ↗
(app: App, file: TFile, content: string)

Source from the content-addressed store, hash-verified

17}
18
19export async function modifyVaultFile(app: App, file: TFile, content: string): Promise<void> {
20 await app.vault.modify(file, content);
21}
22
23export async function renameVaultFile(app: App, file: TFile, newPath: string): Promise<void> {
24 await app.vault.rename(file, newPath);

Calls 1

modifyMethod · 0.45

Tested by

no test coverage detected