(file: string)
| 398 | } |
| 399 | |
| 400 | export function tryStatSync(file: string): fs.Stats | undefined { |
| 401 | try { |
| 402 | // The "throwIfNoEntry" is a performance optimization for cases where the file does not exist |
| 403 | return fs.statSync(file, { throwIfNoEntry: false }) |
| 404 | } catch { |
| 405 | // Ignore errors |
| 406 | } |
| 407 | } |
| 408 | |
| 409 | export function lookupFile( |
| 410 | dir: string, |
no outgoing calls
no test coverage detected