#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

#1261 in Filesystem

Download history 126/week @ 2024-07-15 99/week @ 2024-07-22 65/week @ 2024-07-29 20/week @ 2024-08-05 1/week @ 2024-08-19 14/week @ 2024-08-26 22/week @ 2024-09-23 2/week @ 2024-09-30 60/week @ 2024-10-07 146/week @ 2024-10-14 13/week @ 2024-10-21 13/week @ 2024-10-28

232 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