collectfiles


Collects accurate files while running in parallel through directories. (Simple, Fast, Powerful)

CI Crates.io Licensed Twitter

| Docs | Latest Note |

toml [dependencies] collectfiles = "1.1.0"


Example

```rust use collectfiles::*;

let vec = CollectFiles("/Users/hwakyeom/programs/") .withdepth(1) .withtargetregex(".md$") .withhook(|path| path.withextension("mutated")) .withunwraporelse(|e| { if e.kind() == io::ErrorKind::NotFound { PathBuf::from("/Users/other/") } else { panic!("{:?}", e) } }) .collect();

println!("{:#?}", vec); ```