(path: string)
| 31 | } |
| 32 | |
| 33 | export function listFiles(path: string): string[] { |
| 34 | try { |
| 35 | return readdirSync(path); |
| 36 | } catch (e: unknown) { |
| 37 | if ((e as NodeJS.ErrnoException).code === "ENOENT") { |
| 38 | throw new FirebaseError(`Directory not found: ${path}`); |
| 39 | } |
| 40 | throw e; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | // Move all files and directories inside srcDir to destDir |
| 45 | export function moveAll(srcDir: string, destDir: string) { |
no outgoing calls
no test coverage detected
searching dependent graphs…