(dirPath)
| 132 | } |
| 133 | |
| 134 | async function assertDirectory(dirPath) { |
| 135 | const stat = await fs.stat(dirPath) |
| 136 | if (!stat.isDirectory()) { |
| 137 | throw new Error(`Expected directory: ${dirPath}`) |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | async function walk(rootDir) { |
| 142 | const results = [] |