(filePath: string)
| 486 | * Only use for checking system tool installation paths. |
| 487 | */ |
| 488 | export function systemPathExists(filePath: string): boolean { |
| 489 | if (!isAllowedSystemPath(filePath)) { |
| 490 | throw new Error(`[SystemPaths] Access denied: ${filePath} is not an allowed system path`); |
| 491 | } |
| 492 | return fsSync.existsSync(filePath); |
| 493 | } |
| 494 | |
| 495 | /** |
| 496 | * Check if a file is accessible at a system path (async) |
no test coverage detected