MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / normalizedJoin

Function normalizedJoin

daemon/src/tools/filepath.ts:29–34  ·  view source on GitHub ↗
(...paths: string[])

Source from the content-addressed store, hash-verified

27}
28
29export function normalizedJoin(...paths: string[]) {
30 if (os.platform() === "win32") {
31 return joinWin32(...paths);
32 }
33 return path.normalize(path.join(...paths));
34}
35
36function joinWin32(...paths: string[]): string {
37 if (!paths.length) return ".";

Callers 1

cdMethod · 0.90

Calls 1

joinWin32Function · 0.85

Tested by

no test coverage detected