Closed yeya closed 4 years ago
At the moment the stat is required to work out if a path is a directory or not.
There is another option for that but it would require a bigger refactor which I'm not really up for at the moment. If you wan't to create a PR, let me know and I will reopen the issue.
If one of the search criteria is the filename - you can skip the stat function for each file that not equal to the name and speed up the search