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

Function joinPath

graph-ui/src/components/StatsTab.tsx:162–167  ·  view source on GitHub ↗
(base: string, dir: string)

Source from the content-addressed store, hash-verified

160/* ── Create Index Modal ─────────────────────────────────── */
161
162function joinPath(base: string, dir: string): string {
163 if (!base || base === "/") return `/${dir}`;
164 if (/^[A-Za-z]:[\\/]?$/.test(base)) return `${base[0]}:/${dir}`;
165 const slash = base.includes("\\") && !base.includes("/") ? "\\" : "/";
166 return `${base.replace(/[\\/]+$/, "")}${slash}${dir}`;
167}
168
169function CreateIndexModal({ onClose, onCreated }: { onClose: () => void; onCreated: () => void }) {
170 const t = useUiMessages();

Callers 2

onFilterKeyDownFunction · 0.85
CreateIndexModalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected