( path: string, files: Record<string, string>, )
| 133 | } |
| 134 | |
| 135 | export function findFilesRecursively( |
| 136 | path: string, |
| 137 | files: Record<string, string>, |
| 138 | ) { |
| 139 | const dirFiles = readdirSync(path) |
| 140 | for (const file of dirFiles) { |
| 141 | const filePath = resolve(path, file) |
| 142 | if (isDirectory(filePath)) { |
| 143 | findFilesRecursively(filePath, files) |
| 144 | } else { |
| 145 | files[filePath] = readFileHelper(filePath) |
| 146 | } |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | async function recursivelyGatherFilesHelper( |
| 151 | basePath: string, |
nothing calls this directly
no test coverage detected