MCPcopy Create free account
hub / github.com/cloudflare/agents / writeFile

Method writeFile

packages/shell/src/fs/in-memory-fs.ts:237–243  ·  view source on GitHub ↗
(
    path: string,
    content: string,
    options?: WriteFileOptions | BufferEncoding
  )

Source from the content-addressed store, hash-verified

235 }
236
237 async writeFile(
238 path: string,
239 content: string,
240 options?: WriteFileOptions | BufferEncoding
241 ): Promise<void> {
242 this.insertContent(path, content, getEncoding(options));
243 }
244
245 async writeFileBytes(path: string, content: Uint8Array): Promise<void> {
246 this.insertContent(path, content);

Callers

nothing calls this directly

Calls 2

insertContentMethod · 0.95
getEncodingFunction · 0.90

Tested by

no test coverage detected