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