Crate collectfiles[][src]

Expand description

collectfiles

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);

Modules

Structs

CollectFiles(entry_dir)

Traits