3 releases

0.1.2 Nov 14, 2024
0.1.1 Oct 18, 2024
0.1.0 Sep 4, 2024

#1154 in Filesystem

Download history 121/week @ 2024-08-31 30/week @ 2024-09-07 24/week @ 2024-09-14 21/week @ 2024-09-21 14/week @ 2024-09-28 10/week @ 2024-10-05 113/week @ 2024-10-12 58/week @ 2024-10-19 11/week @ 2024-10-26 18/week @ 2024-11-02 99/week @ 2024-11-09 35/week @ 2024-11-16 31/week @ 2024-11-23 17/week @ 2024-11-30

185 downloads per month

GPL-3.0 license

17KB
260 lines

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)

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);

lib.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)

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);

No runtime deps