Crates.io | collectfiles |
lib.rs | collectfiles |
version | 1.1.0 |
source | src |
created_at | 2021-10-19 22:29:53.814712 |
updated_at | 2021-12-03 11:07:09.922412 |
description | Collects accurate files while running in parallel through directories. (Simple, Fast, Powerful) |
homepage | https://github.com/just-do-halee/collectfiles |
repository | https://github.com/just-do-halee/collectfiles |
max_upload_size | |
id | 467564 |
size | 25,344 |
collectfiles
Collects accurate files while running in parallel through directories. (Simple, Fast, Powerful)
| Docs | Latest Note |
[dependencies]
collectfiles = "1.1.0"
use collectfiles::*;
let vec = CollectFiles("/Users/hwakyeom/programs/")
.with_depth(1)
.with_target_regex(".md$")
.with_hook(|path| path.with_extension("mutated"))
.with_unwrap_or_else(|e| {
if e.kind() == io::ErrorKind::NotFound {
PathBuf::from("/Users/other/")
} else {
panic!("{:?}", e)
}
})
.collect();
println!("{:#?}", vec);