MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / getWindowsTarCommand

Function getWindowsTarCommand

apps/kimi-code/src/utils/process/fd-detect.ts:184–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182}
183
184function getWindowsTarCommand(): string {
185 const systemRoot = process.env['SystemRoot'] ?? process.env['WINDIR'];
186 if (systemRoot !== undefined) {
187 const systemTar = join(systemRoot, 'System32', 'tar.exe');
188 if (existsSync(systemTar)) return systemTar;
189 }
190 return 'tar.exe';
191}
192
193function findBinaryRecursively(rootDir: string, binaryName: string): string | null {
194 const stack = [rootDir];

Callers 1

extractArchiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected