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

Method resolvePath

packages/shell/src/workspace.ts:154–156  ·  view source on GitHub ↗
(base: string, path: string)

Source from the content-addressed store, hash-verified

152 }
153
154 resolvePath(base: string, path: string): string {
155 return normalizePath(path.startsWith("/") ? path : `${base}/${path}`);
156 }
157
158 async glob(pattern: string): Promise<string[]> {
159 return (await this.ws.glob(pattern)).map((e) => e.path);

Callers

nothing calls this directly

Calls 1

normalizePathFunction · 0.70

Tested by

no test coverage detected