fs-walk

Crates.iofs-walk
lib.rsfs-walk
version0.1.5
created_at2024-09-04 21:13:56.096121+00
updated_at2025-04-30 08:16:11.249171+00
descriptionFile-system walking crate
homepage
repositoryhttps://github.com/qjerome/fs-walk
max_upload_size
id1363812
size58,276
Quentin JEROME (qjerome)

documentation

https://docs.rs/fs-walk

README

GitHub Actions Workflow Status Crates.io Version docs.rs

fs_walk is a crate providing functionalities to walk a file-system recursively using std Rust APIs.

This crate currently supports:

  • depth configuration
  • results chunking to feed any batch processing routine
  • result selection (only files, only dirs, by extension)
  • regex matching

Features

  • regex: enable regex matching

Example

use fs_walk;

let o = fs_walk::WalkOptions::new()
    // we want to walk only files
    .files()
    // we want files with .o extension
    .extension("o");

assert!(o.walk("./").count() > 0);
Commit count: 20

cargo fmt