(base: string, dir: string)
| 160 | /* ── Create Index Modal ─────────────────────────────────── */ |
| 161 | |
| 162 | function 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 | |
| 169 | function CreateIndexModal({ onClose, onCreated }: { onClose: () => void; onCreated: () => void }) { |
| 170 | const t = useUiMessages(); |
no outgoing calls
no test coverage detected