3 releases

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

#1211 in Filesystem

Download history 24/week @ 2024-09-11 18/week @ 2024-09-18 18/week @ 2024-09-25 13/week @ 2024-10-02 13/week @ 2024-10-09 152/week @ 2024-10-16 16/week @ 2024-10-23 15/week @ 2024-10-30 11/week @ 2024-11-06 120/week @ 2024-11-13 23/week @ 2024-11-20 33/week @ 2024-11-27 23/week @ 2024-12-04 19/week @ 2024-12-11 6/week @ 2024-12-18

51 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