()
| 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) { |