MCPcopy
hub / github.com/coder/mux / writeFile

Method writeFile

src/node/services/memoryService.ts:371–375  ·  view source on GitHub ↗
(relPath: string, content: string)

Source from the content-addressed store, hash-verified

369 }
370
371 async writeFile(relPath: string, content: string): Promise<void> {
372 const absPath = this.abs(relPath);
373 await fsPromises.mkdir(path.dirname(absPath), { recursive: true });
374 await writeFileAtomic(absPath, content, { encoding: "utf-8" });
375 }
376
377 async remove(relPath: string): Promise<void> {
378 await fsPromises.rm(this.abs(relPath), { recursive: true, force: true });

Callers

nothing calls this directly

Calls 1

absMethod · 0.95

Tested by

no test coverage detected