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

Method find

packages/computer/src/stub.ts:188–198  ·  view source on GitHub ↗
(directory: string, pattern?: string)

Source from the content-addressed store, hash-verified

186 }
187
188 find(directory: string, pattern?: string): Promise<WorkspaceFoundEntry[]> {
189 return withSpan(
190 this.#ws.observer,
191 "workspace.fs.find",
192 { "workspace.fs.path": directory, "workspace.fs.pattern": pattern },
193 () => this.#ws.fs.find(directory, pattern),
194 (span, outcome) => {
195 if (outcome.ok) span.setAttribute("workspace.fs.matches", outcome.value.length);
196 },
197 );
198 }
199
200 ls(prefix: string): Promise<string[]> {
201 return withSpan(

Callers

nothing calls this directly

Calls 3

withSpanFunction · 0.85
findMethod · 0.65
setAttributeMethod · 0.65

Tested by

no test coverage detected