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

Method readSync

lib/internal/vfs/dir.js:37–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 }
36
37 readSync() {
38 if (this.#closed) {
39 throw new ERR_DIR_CLOSED();
40 }
41 if (this.#index >= this.#entries.length) {
42 return null;
43 }
44 return this.#entries[this.#index++];
45 }
46
47 async read(callback) {
48 if (typeof callback === 'function') {

Callers 4

readMethod · 0.95
entriesMethod · 0.95
readSyncFunction · 0.45
readvSyncFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected