#directory #parallel #recursion #scan #walk

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

#511 in Filesystem

Download history 1/week @ 2023-12-22 12/week @ 2023-12-29 165/week @ 2024-01-05 240/week @ 2024-01-12 67/week @ 2024-01-19 8/week @ 2024-01-26 34/week @ 2024-02-02 3/week @ 2024-02-09 218/week @ 2024-02-16 93/week @ 2024-02-23 75/week @ 2024-03-01 43/week @ 2024-03-08 38/week @ 2024-03-15 23/week @ 2024-03-29 67/week @ 2024-04-05

134 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

~110–295KB