MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / childPath

Function childPath

graph-ui/src/projects/projects-model.ts:120–126  ·  view source on GitHub ↗
(level: BrowseLevel, dir: string)

Source from the content-addressed store, hash-verified

118
119/** `path` joined with one of its listed folders, without doubling the separator. */
120export function childPath(level: BrowseLevel, dir: string): string {
121 const base = level.path;
122 if (base.length === 0) {
123 return dir;
124 }
125 return base.endsWith('/') ? `${base}${dir}` : `${base}/${dir}`;
126}
127
128// ---------------------------------------------------------------- health --
129

Callers 3

ProjectsPanelFunction · 0.90
AddProjectIndexDialogFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected