(filePath: string)
| 38 | * @returns A promise that resolves to true if the path exists, false otherwise. |
| 39 | */ |
| 40 | export async function fileExistsAtPath(filePath: string): Promise<boolean> { |
| 41 | try { |
| 42 | await fs.access(filePath) |
| 43 | return true |
| 44 | } catch { |
| 45 | return false |
| 46 | } |
| 47 | } |
no outgoing calls
no test coverage detected