(dir, dirEntries)
| 33 | } |
| 34 | |
| 35 | function collectEntries(dir, dirEntries) { |
| 36 | const newEntries = readdirSync(dir, mustNotMutateObjectDeep({ withFileTypes: true })); |
| 37 | for (const entry of newEntries) { |
| 38 | if (entry.isDirectory()) { |
| 39 | collectEntries(join(dir, entry.name), dirEntries); |
| 40 | } |
| 41 | } |
| 42 | dirEntries.push(...newEntries); |
| 43 | } |
| 44 | |
| 45 | module.exports = { |
| 46 | nextdir, |
no test coverage detected
searching dependent graphs…