MCPcopy Index your code
hub / github.com/nodejs/node / #readSyncRecursive

Method #readSyncRecursive

lib/internal/fs/dir.js:195–207  ·  view source on GitHub ↗
(dirent)

Source from the content-addressed store, hash-verified

193 }
194
195 #readSyncRecursive(dirent) {
196 const path = pathModule.join(dirent.parentPath, dirent.name);
197 const handle = dirBinding.opendir(
198 path,
199 this.#options.encoding,
200 );
201
202 if (handle === undefined) {
203 return;
204 }
205
206 ArrayPrototypePush(this.#handlerQueue, { handle, path });
207 }
208
209 readSync() {
210 if (this.#closed === true) {

Callers 2

#readImplMethod · 0.95
readSyncMethod · 0.95

Calls 2

opendirMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected