(filePath: string)
| 14 | } |
| 15 | |
| 16 | export async function fileExists(filePath: string): Promise<boolean> { |
| 17 | try { |
| 18 | const stats = await stat(filePath); |
| 19 | return stats.isFile(); |
| 20 | } catch { |
| 21 | return false; |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | export async function directoryExists(filePath: string): Promise<boolean> { |
| 26 | try { |
no outgoing calls
no test coverage detected