diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2025-12-20 19:47:16 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2025-12-20 19:47:16 -0400 |
| commit | 73fcf6c666273af5d7bf31338dc3b8ec0af58ad5 (patch) | |
| tree | cc471b436667b3a11047382a736e6050ee671ee4 /src/node-utils.js | |
| parent | 68bf2c48781439d25255c17611d105b44ba440e4 (diff) | |
Revert "node-utils: traverse: queue stat too"
This reverts commit 25d492fac5daf1b9a983792df06af41ecd8c3424.
Diffstat (limited to 'src/node-utils.js')
| -rw-r--r-- | src/node-utils.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/node-utils.js b/src/node-utils.js index 8b81053d..d2e29b2f 100644 --- a/src/node-utils.js +++ b/src/node-utils.js @@ -83,13 +83,12 @@ export async function traverse(rootPath, { throw new Error(`Expected pathStyle to be device, posix, or win32`); } - const q_readdir = wrapQueue(readdir, Math.ceil(queueSize / 2)); - const q_stat = wrapQueue(stat, Math.ceil(queueSize / 2)); + const q_readdir = wrapQueue(readdir, queueSize); const recursive = (names, ...subdirectories) => Promise.all(names.map(async name => { const devicePath = pathJoinDevice(rootPath, ...subdirectories, name); - const stats = await q_stat(devicePath); + const stats = await stat(devicePath); if (stats.isDirectory() && !filterDir(name)) return []; else if (stats.isFile() && !filterFile(name)) return []; |