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

Function joinPath

packages/computer/src/git/init.ts:72–75  ·  view source on GitHub ↗
(base: string, segment: string)

Source from the content-addressed store, hash-verified

70}
71
72function joinPath(base: string, segment: string): string {
73 if (base.endsWith("/")) return `${base}${segment}`;
74 return `${base}/${segment}`;
75}
76
77function errorMessage(cause: unknown): string {
78 if (cause instanceof Error) return cause.message;

Callers 1

initWithFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected