Closed
Description
With this SO question in mind:
https://stackoverflow.com/questions/51333163/nodejs-readdir-only-find-files/51333279
I know that readdir is some c utitlity on Unix. It would be possibly more efficient for users to pre-filter with readdir instead of running lstatSync or statSync on each item from the array.
Is it possible for the lower level routines to filter things out efficiently before sending back?