MCPcopy Create free account
hub / github.com/agegr/pi-web / joinFilePath

Function joinFilePath

lib/file-paths.ts:41–43  ·  view source on GitHub ↗
(parent: string, child: string)

Source from the content-addressed store, hash-verified

39}
40
41export function joinFilePath(parent: string, child: string): string {
42 return `${normalizeFilePathSlashes(parent).replace(/\/$/, "")}/${child}`;
43}

Callers 2

fetchEntriesFunction · 0.90
FileExplorer.tsxFile · 0.90

Calls 1

normalizeFilePathSlashesFunction · 0.70

Tested by

no test coverage detected