* 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)
| 15 | * @returns true if the path exists, false otherwise |
| 16 | */ |
| 17 | function checkPathExists(path: string): boolean { |
| 18 | try { |
| 19 | execSync_DEPRECATED(`dir "${path}"`, { stdio: 'pipe' }) |
| 20 | return true |
| 21 | } catch { |
| 22 | return false |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Find an executable using where.exe on Windows |
no test coverage detected