(filepath: string)
| 62 | * Returns true if the path is a file with read access. |
| 63 | */ |
| 64 | export const isFile = (filepath: string): boolean => { |
| 65 | try { |
| 66 | return lstatSync(filepath).isFile() |
| 67 | } catch { |
| 68 | return false |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Returns true if the path is a file or a symbolic link to a file with read |
no test coverage detected