sudsy / node-find-files

A Node Module for finding files by attributes. Originally developed to find files modified since a particular date. Uses an eventemitter model so the results can start streaming back as soon as they are found.
15 stars 7 forks source link

Add an option to find by name before stat #4

Closed yeya closed 4 years ago

yeya commented 8 years ago

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

sudsy commented 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.