Gilnaa / globwalk

MIT License
47 stars 14 forks source link

(feature request) Ability to filter based on file metadata (e.g. `created_after`, `modified_after`, etc) #33

Open jaymakes11 opened 1 year ago

jaymakes11 commented 1 year ago

First, love the API and speed of this library. Thank you!

I was using https://github.com/ParthJadhav/Rust_Search previously... believe it or not, from my testing globwalk is actually faster (didn't do any thorough benchmarking or anything but for my specific usecase I'm seeing that it's faster. And moreover, its API doesn't support glob for multiple file extensions.

One thing Rust_Search does have that I'm missing in globwalk is the ability to filter against file metadata. This was added here to Rust_Search.

Would it be possible to add something similar to globwalk?


Update: Just saw filter_map... perhaps it could be used for this? If so, some example code would be super helpful (I'm a total Rust newbie).