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

Method entries

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

Source from the content-addressed store, hash-verified

74 }
75
76 async *entries() {
77 if (this.#closed) {
78 throw new ERR_DIR_CLOSED();
79 }
80 try {
81 let entry;
82 while ((entry = this.readSync()) !== null) {
83 yield entry;
84 }
85 } finally {
86 if (!this.#closed) {
87 this.closeSync();
88 }
89 }
90 }
91
92 [SymbolDispose]() {
93 if (!this.#closed) {

Callers

nothing calls this directly

Calls 2

readSyncMethod · 0.95
closeSyncMethod · 0.95

Tested by

no test coverage detected