Crates.io | discoverer |
lib.rs | discoverer |
version | 0.2.0 |
source | src |
created_at | 2023-01-01 03:16:17.76937 |
updated_at | 2023-01-07 13:52:23.265512 |
description | Recursively search directories for a particular type of file. |
homepage | |
repository | |
max_upload_size | |
id | 748698 |
size | 4,603 |
This crate exposes a single method for recursively walking through directories to find files that match a particular extension.
Add discoverer
to your Cargo.toml
:
[dependencies]
discoverer = "0.2.0"
Or use cargo add discoverer
use discoverer::discover;
fn main() {
let discoveries = discover(&["txt"], &[
&concat!(env!("CARGO_MANIFEST_DIR"), "/examples/fixtures")
]).unwrap();
dbg!(discoveries);
}