(filePath: string)
| 23 | } |
| 24 | |
| 25 | export async function directoryExists(filePath: string): Promise<boolean> { |
| 26 | try { |
| 27 | const stats = await stat(filePath); |
| 28 | return stats.isDirectory(); |
| 29 | } catch { |
| 30 | return false; |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | export async function ensureDirectoryExists(baseDir: string) { |
| 35 | try { |
no outgoing calls
no test coverage detected