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

Method read

packages/worker-bundler/src/file-system.ts:7–7  ·  view source on GitHub ↗

* Reads a file from the file system. * @param path The path to the file. * @returns The contents of the file, or `null` if the file does not exist.

(path: string)

Source from the content-addressed store, hash-verified

5 * @returns The contents of the file, or `null` if the file does not exist.
6 */
7 read(path: string): string | null;
8
9 /**
10 * Writes a file to the file system.

Callers 15

_streamSSEReplyMethod · 0.65
_sendPlaintextReplyMethod · 0.65
readUntilDoneOrAbortFunction · 0.65
collectChunksFunction · 0.65
writeFileStreamMethod · 0.65
transformBytesFunction · 0.65
workspace.test.tsFile · 0.65
readStreamMethod · 0.65
installDependenciesFunction · 0.65
installPackageFunction · 0.65
decompressFunction · 0.65

Implementers 5

TypescriptFileSystempackages/worker-bundler/src/typescript
InMemoryFileSystempackages/worker-bundler/src/file-syste
OverlayFileSystempackages/worker-bundler/src/file-syste
DurableObjectRawFileSystempackages/worker-bundler/src/file-syste
DurableObjectKVFileSystempackages/worker-bundler/src/file-syste

Calls

no outgoing calls

Tested by 7

readUntilDoneOrAbortFunction · 0.52
collectChunksFunction · 0.52
readOneFrameFunction · 0.52
establishSSEViaAutoFunction · 0.52
initializeSessionFunction · 0.52
readOneFrameFunction · 0.52
collectStreamFunction · 0.52