discoverer

Crates.iodiscoverer
lib.rsdiscoverer
version0.2.0
sourcesrc
created_at2023-01-01 03:16:17.76937
updated_at2023-01-07 13:52:23.265512
descriptionRecursively search directories for a particular type of file.
homepage
repository
max_upload_size
id748698
size4,603
Ryan Chandler (ryangjchandler)

documentation

README

Discoverer

This crate exposes a single method for recursively walking through directories to find files that match a particular extension.

Usage

Add discoverer to your Cargo.toml:

[dependencies]
discoverer = "0.2.0"

Or use cargo add discoverer

Example

use discoverer::discover;

fn main() {
    let discoveries = discover(&["txt"], &[
        &concat!(env!("CARGO_MANIFEST_DIR"), "/examples/fixtures")
    ]).unwrap();

    dbg!(discoveries);
}

Credits

Commit count: 0

cargo fmt