MCPcopy Index your code
hub / github.com/nodejs/node / _process

Function _process

test/sequential/test-fs-opendir-recursive.js:176–189  ·  view source on GitHub ↗
(dir, acc, cb)

Source from the content-addressed store, hash-verified

174 const acc = [];
175
176 function _process(dir, acc, cb) {
177 dir.read((err, dirent) => {
178 if (err) {
179 return cb(err);
180 }
181
182 if (dirent !== null) {
183 acc.push(dirent);
184 _process(dir, acc, cb);
185 } else {
186 cb(null, acc);
187 }
188 });
189 }
190
191 _process(dir, acc, cb);
192}

Callers 1

processDirCbFunction · 0.85

Calls 3

cbFunction · 0.70
readMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…