(filePath: string)
| 15 | } |
| 16 | |
| 17 | export async function pathExists(filePath: string): Promise<boolean> { |
| 18 | try { |
| 19 | await fs.access(filePath) |
| 20 | return true |
| 21 | } catch { |
| 22 | return false |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | export async function ensureDir(dirPath: string): Promise<void> { |
| 27 | await fs.mkdir(dirPath, { recursive: true }) |
no outgoing calls
no test coverage detected