Skip to content

Collects accurate files while running in parallel through directories. (Simple, Fast, Powerful)

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT
Notifications You must be signed in to change notification settings

just-do-halee/collectfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

collectfiles


Collects accurate files while running in parallel through directories. (Simple, Fast, Powerful)

CI Crates.io Licensed Twitter

| Docs | Latest Note |

[dependencies]
collectfiles = "1.1.0"

Example

use collectfiles::*;

let vec = CollectFiles("/Users/hwakyeom/programs/")
        .with_depth(1)
        .with_target_regex(".md$")
        .with_hook(|path| path.with_extension("mutated"))
        .with_unwrap_or_else(|e| {
            if e.kind() == io::ErrorKind::NotFound {
                PathBuf::from("/Users/other/")
            } else {
               panic!("{:?}", e)
            }
        })
        .collect();

println!("{:#?}", vec);

About

Collects accurate files while running in parallel through directories. (Simple, Fast, Powerful)

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages