Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: use fs.readdirSync with withFileTypes (#52340)
There is no need to make a `fs.statSync` call for each file while reading a directory, since `fs.readdirSync` supports `withFileTypes` property that returns a `fs.Dirent` which includes the necessary information for detecting if the particular item is directory or not.
- Loading branch information