remove unecessary fs.stat calls from recursive-readdir (#27769)
## Performance improvement - [x] Performance improvement Removes unnecessary `fs.stat` calls in `recursiveReadDir`. `fs.readdir` had an option `withFileTypes: boolean` added NodeJS version 10. It can be used to read the directory contents and fetch its stats simultaneously, removing the need to read individual file stats after reading the directory contents.
Showing
Please
register
or
sign in
to comment