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

Method ls

packages/computer/src/stub.ts:200–210  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

198 }
199
200 ls(prefix: string): Promise<string[]> {
201 return withSpan(
202 this.#ws.observer,
203 "workspace.fs.ls",
204 { "workspace.fs.path": prefix },
205 () => this.#ws.fs.ls(prefix),
206 (span, outcome) => {
207 if (outcome.ok) span.setAttribute("workspace.fs.entries", outcome.value.length);
208 },
209 );
210 }
211
212 grep(pattern: string, path: string, options: GrepOptions = {}): Promise<WorkspaceGrepMatch[]> {
213 return withSpan(

Callers

nothing calls this directly

Calls 3

withSpanFunction · 0.85
lsMethod · 0.65
setAttributeMethod · 0.65

Tested by

no test coverage detected