()
| 67 | } |
| 68 | |
| 69 | function getManagedFdPath(): string | null { |
| 70 | const binaryPath = getManagedFdBinaryPath(); |
| 71 | if (!existsSync(binaryPath)) return null; |
| 72 | try { |
| 73 | const result = spawnSync(binaryPath, ['--version'], { stdio: 'ignore' }); |
| 74 | return result.status === 0 ? binaryPath : null; |
| 75 | } catch { |
| 76 | return null; |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | function getManagedFdBinaryPath(): string { |
| 81 | return join(getBinDir(), platform() === 'win32' ? 'fd.exe' : 'fd'); |
no test coverage detected