MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / joinPath

Function joinPath

src/ui-server/api/map.ts:276–278  ·  view source on GitHub ↗
(root: string, segments: readonly string[])

Source from the content-addressed store, hash-verified

274}
275
276function joinPath(root: string, segments: readonly string[]): string {
277 return [root, ...segments].filter(Boolean).join('/');
278}
279
280/** The first `levels` levels of `dirs`, a chain of three or more folders written `first/…/last`. */
281function levelLabel(root: string, dirs: readonly string[], ends: readonly number[]): string {

Callers 2

levelEndsFunction · 0.70
moduleIdForFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected