(file)
| 7 | } |
| 8 | |
| 9 | function search(file) { |
| 10 | let stats = statSync(file); |
| 11 | if (stats.isDirectory()) { |
| 12 | for (let f of readdirSync(file)) { |
| 13 | search(file + "/" + f); |
| 14 | } |
| 15 | } else if (searchTerm.test(readFileSync(file, "utf8"))) { |
| 16 | console.log(file); |
| 17 | } |
| 18 | } |