MCPcopy
hub / github.com/Fission-AI/OpenSpec / joinGlobalDataPath

Function joinGlobalDataPath

src/core/global-config.ts:74–78  ·  view source on GitHub ↗
(platform: NodeJS.Platform, ...segments: string[])

Source from the content-addressed store, hash-verified

72}
73
74function joinGlobalDataPath(platform: NodeJS.Platform, ...segments: string[]): string {
75 return platform === 'win32'
76 ? path.win32.join(...segments)
77 : path.posix.join(...segments);
78}
79
80export function getGlobalDataDir(options: GlobalDataDirOptions = {}): string {
81 const env = options.env ?? process.env;

Callers 1

getGlobalDataDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected