| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0b3fc0d commit 823ca69
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -82,7 +82,7 @@ class Dir { | |||
| 82 | 82 | ); | |
| 83 | 83 | ||
| 84 | 84 | if (result !== null) { | |
| 85 | - this.processReadResult(path, result); | ||
| 85 | + this.#processReadResult(path, result); | ||
| 86 | 86 | if (result.length > 0) { | |
| 87 | 87 | ArrayPrototypePush(this.#handlerQueue, handler); | |
| 88 | 88 | } | |
@@ -125,7 +125,7 @@ class Dir { | |||
| 125 | 125 | const dirent = ArrayPrototypeShift(this.#bufferedEntries); | |
| 126 | 126 | ||
| 127 | 127 | if (this.#options.recursive && dirent.isDirectory()) { | |
| 128 | - this.readSyncRecursive(dirent); | ||
| 128 | + this.#readSyncRecursive(dirent); | ||
| 129 | 129 | } | |
| 130 | 130 | ||
| 131 | 131 | if (maybeSync) | |
@@ -151,10 +151,10 @@ class Dir { | |||
| 151 | 151 | } | |
| 152 | 152 | ||
| 153 | 153 | try { | |
| 154 | - this.processReadResult(this.#path, result); | ||
| 154 | + this.#processReadResult(this.#path, result); | ||
| 155 | 155 | const dirent = ArrayPrototypeShift(this.#bufferedEntries); | |
| 156 | 156 | if (this.#options.recursive && dirent.isDirectory()) { | |
| 157 | - this.readSyncRecursive(dirent); | ||
| 157 | + this.#readSyncRecursive(dirent); | ||
| 158 | 158 | } | |
| 159 | 159 | callback(null, dirent); | |
| 160 | 160 | } catch (error) { | |
@@ -170,7 +170,7 @@ class Dir { | |||
| 170 | 170 | ); | |
| 171 | 171 | } | |
| 172 | 172 | ||
| 173 | - processReadResult(path, result) { | ||
| 173 | + #processReadResult(path, result) { | ||
| 174 | 174 | for (let i = 0; i < result.length; i += 2) { | |
| 175 | 175 | ArrayPrototypePush( | |
| 176 | 176 | this.#bufferedEntries, | |
@@ -183,7 +183,7 @@ class Dir { | |||
| 183 | 183 | } | |
| 184 | 184 | } | |
| 185 | 185 | ||
| 186 | - readSyncRecursive(dirent) { | ||
| 186 | + #readSyncRecursive(dirent) { | ||
| 187 | 187 | const path = pathModule.join(dirent.parentPath, dirent.name); | |
| 188 | 188 | const handle = dirBinding.opendir( | |
| 189 | 189 | path, | |
@@ -209,7 +209,7 @@ class Dir { | |||
| 209 | 209 | if (this.#processHandlerQueue()) { | |
| 210 | 210 | const dirent = ArrayPrototypeShift(this.#bufferedEntries); | |
| 211 | 211 | if (this.#options.recursive && dirent.isDirectory()) { | |
| 212 | - this.readSyncRecursive(dirent); | ||
| 212 | + this.#readSyncRecursive(dirent); | ||
| 213 | 213 | } | |
| 214 | 214 | return dirent; | |
| 215 | 215 | } | |
@@ -223,11 +223,11 @@ class Dir { | |||
| 223 | 223 | return result; | |
| 224 | 224 | } | |
| 225 | 225 | ||
| 226 | - this.processReadResult(this.#path, result); | ||
| 226 | + this.#processReadResult(this.#path, result); | ||
| 227 | 227 | ||
| 228 | 228 | const dirent = ArrayPrototypeShift(this.#bufferedEntries); | |
| 229 | 229 | if (this.#options.recursive && dirent.isDirectory()) { | |
| 230 | - this.readSyncRecursive(dirent); | ||
| 230 | + this.#readSyncRecursive(dirent); | ||
| 231 | 231 | } | |
| 232 | 232 | return dirent; | |
| 233 | 233 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments