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

Function processDirSync

test/sequential/test-fs-opendir-recursive.js:146–154  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

144}
145
146function processDirSync(dir) {
147 const dirents = [];
148 let dirent = dir.readSync();
149 while (dirent !== null) {
150 dirents.push(dirent);
151 dirent = dir.readSync();
152 }
153 assertDirents(dirents);
154}
155
156// Opendir read results sync
157

Callers 1

Calls 3

assertDirentsFunction · 0.70
readSyncMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…