3 releases
0.1.2 | Nov 14, 2024 |
---|---|
0.1.1 | Oct 18, 2024 |
0.1.0 | Sep 4, 2024 |
#1154 in Filesystem
185 downloads per month
17KB
260 lines
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);