Skip to content

Recursively search directories for a particular type of file.

Notifications You must be signed in to change notification settings

pxp-lang/discoverer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Recursively search directories for a particular type of file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages