Skip to content

Commit

Permalink
use less ram searching
Browse files Browse the repository at this point in the history
  • Loading branch information
rejetto committed Jul 19, 2024
1 parent 93a0160 commit 96de63b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export async function* dirStream(path: string, { depth=0, onlyFiles=false, onlyF
onlyDirectories: onlyFolders,
suppressErrors: true,
objectMode: true,
unique: false,
})
const skip = await getItemsToSkip(path)
for await (const entry of dirStream) {
Expand Down

0 comments on commit 96de63b

Please sign in to comment.