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

Method writeFile

src/node/services/memoryService.ts:263–263  ·  view source on GitHub ↗

Atomic write; creates parent directories.

(relPath: string, content: string)

Source from the content-addressed store, hash-verified

261 readFilePrefix(relPath: string, maxBytes: number): Promise<string>;
262 /** Atomic write; creates parent directories. */
263 writeFile(relPath: string, content: string): Promise<void>;
264 /** Recursive delete of a file or directory. */
265 remove(relPath: string): Promise<void>;
266 /** Move/rename; creates the destination's parent directories. */

Implementers 1

LocalMemoryStoresrc/node/services/memoryService.ts

Calls

no outgoing calls

Tested by 15

writePlanFileFunction · 0.52
createFixtureFunction · 0.52
makeWorkspaceDirtyFunction · 0.52
writeWorkspaceBranchMapFunction · 0.52
createLocalGitRepositoryFunction · 0.52
writeFakeGitCloneShimFunction · 0.52