(p: string)
| 89 | } |
| 90 | |
| 91 | async function exists(p: string): Promise<boolean> { |
| 92 | try { |
| 93 | await access(p); |
| 94 | return true; |
| 95 | } catch { |
| 96 | return false; |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | async function copyDir(src: string, dest: string, dryRun: boolean) { |
| 101 | if (!(await exists(src))) return false; |
no outgoing calls
no test coverage detected