keepr

Crates.iokeepr
lib.rskeepr
version0.1.5
created_at2025-04-29 04:25:26.706012+00
updated_at2025-07-29 07:03:23.203416+00
descriptionSimple and customizable file finder for Rust.
homepagehttps://gitlab.com/traxix/keepr
repositoryhttps://gitlab.com/traxix/keepr
max_upload_size
id1653090
size8,728
(trax44)

documentation

README

Keepr

Simple and customizable file finder for Rust.

Features

  • Ignore specific directories
  • Ignore specific files
  • Match specific files
  • Limit search depth
  • Callback for each match

Example

use finder::Finder;
use std::path::Path;

fn main() {
    let finder = Finder {
        ignore_dirs: vec!["target".into(), ".git".into()],
        ignore_files: vec!["Cargo.lock".into()],
        match_files: vec!["main.rs".into()],
        max_depth: Some(3),
    };

    finder.find("./", &mut |path: &Path| {
        println!("Found file: {:?}", path);
    });
}

Commit count: 5

cargo fmt