MCPcopy Create free account
hub / github.com/cloudflare/computer / readFile

Method readFile

packages/dofs/src/provider.ts:347–352  ·  view source on GitHub ↗
(
    path: string,
    options?: BufferEncoding | { encoding?: BufferEncoding | null } | null,
  )

Source from the content-addressed store, hash-verified

345 // -- Default implementations ---------------------------------------
346
347 readFile(
348 path: string,
349 options?: BufferEncoding | { encoding?: BufferEncoding | null } | null,
350 ): Promise<Buffer | string> {
351 return Promise.resolve(this.readFileSync(path, options));
352 }
353
354 readFileSync(
355 path: string,

Callers

nothing calls this directly

Calls 2

readFileSyncMethod · 0.95
resolveMethod · 0.80

Tested by

no test coverage detected