* Check if a file or directory exists on Windows using the dir command * @param path - The path to check * @returns true if the path exists, false otherwise
(path: string)
| 13 | * @returns true if the path exists, false otherwise |
| 14 | */ |
| 15 | function checkPathExists(path: string): boolean { |
| 16 | try { |
| 17 | execSync_DEPRECATED(`dir "${path}"`, { stdio: 'pipe' }) |
| 18 | return true |
| 19 | } catch { |
| 20 | return false |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Find an executable using where.exe on Windows |
no test coverage detected