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

Method stat

packages/computer/src/tools/fs/types.ts:22–22  ·  view source on GitHub ↗

Return file metadata, or null if the path does not exist or is not a file.

(path: string)

Source from the content-addressed store, hash-verified

20export interface FileStore {
21 /** Return file metadata, or null if the path does not exist or is not a file. */
22 stat(path: string): Promise<FileStat | null>;
23
24 /**
25 * Stream the file (or a byte range of it) in chunks. The total

Callers 15

filesystem.test.tsFile · 0.65
shim.test.tsFile · 0.65
stub.test.tsFile · 0.65
statMethod · 0.65
statOrNullMethod · 0.65
workspace.test.tsFile · 0.65
end-to-end.test.tsFile · 0.65
createWriteToolFunction · 0.65
createEditToolFunction · 0.65
statMethod · 0.65
createReadToolFunction · 0.65

Implementers 1

WorkspaceFileStorepackages/computer/src/tools/fs/store.t

Calls

no outgoing calls

Tested by

no test coverage detected