#directory #parallel #walk #recursion #scan

folder

The package allows for scanning directories in parallel

9 releases (5 breaking)

0.6.0 Feb 20, 2024
0.5.1 Oct 20, 2023
0.5.0 Mar 7, 2023
0.4.0 Mar 7, 2023
0.1.1 Feb 9, 2023

#1130 in Filesystem

Download history 74/week @ 2024-07-13 88/week @ 2024-07-20 128/week @ 2024-07-27 19/week @ 2024-08-03 1/week @ 2024-08-10 1/week @ 2024-08-17 8/week @ 2024-08-24 6/week @ 2024-08-31 20/week @ 2024-09-21 4/week @ 2024-09-28 48/week @ 2024-10-05 115/week @ 2024-10-12 55/week @ 2024-10-19 3/week @ 2024-10-26

221 downloads per month
Used in founder

Apache-2.0/MIT

5KB

Folder Package Documentation Build

The package allows for scanning directories in parallel.

Example

use std::path::Path;

let filter = |_: &Path| true;
let map = |path: &Path, _| Ok(path.exists());
let (paths, results): (Vec<_>, Vec<_>) = folder::scan("src", filter, map, (), None).unzip();

Contribution

Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.

Dependencies

~0.1–6.5MB
~36K SLoC