* Check if a file or directory exists on Windows. * Uses fs.existsSync instead of `dir` shell command to avoid spawning * cmd.exe — which can cause brief console window flashes in detached * or windowsHide child processes.
(filePath: string)
| 15 | * or windowsHide child processes. |
| 16 | */ |
| 17 | function checkPathExists(filePath: string): boolean { |
| 18 | return existsSync(filePath) |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Find an executable using where.exe on Windows |
no test coverage detected