rs-dot-ignore 0.1.0

A Rust library and CLI utility for **efficient directory walking with `.ignore`-style file exclusion** — inspired by `.gitignore` behavior.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
    let base_dir = std::env::current_dir().unwrap();

    rs_dot_ignore::walk_dir(base_dir.to_str().unwrap(), |entry| {
        let entry_path = entry.path();
        let path = entry_path.to_str().unwrap();

        if entry_path.is_dir() {
            println!("Dir : {path}");
        } else {
            println!("File: {path}");
        }
    });
}