(dirPath: string)
| 597 | |
| 598 | /** Test whether a directory exists */ |
| 599 | export function checkDirectoryExistsSync(dirPath: string): boolean { |
| 600 | try { |
| 601 | return fs.statSync(dirPath).isDirectory(); |
| 602 | } catch { |
| 603 | return false; |
| 604 | } |
| 605 | } |
| 606 | |
| 607 | /** Test whether a relative path exists */ |
| 608 | export function checkPathExistsSync(path: string, relativePath: string, _isWindows: boolean, isCompilerPath: boolean): { pathExists: boolean; path: string } { |
no outgoing calls
no test coverage detected