Skip to main content

walker

Function walker 

Source
pub fn walker(root: impl AsRef<Path>) -> WalkBuilder
Available on crate feature fs only.
Expand description

Create a walker to walk root recursively.

See WalkBuilder for configurations. cu::fs::walk can be used directly for the default configuration.

let mut builder = cu::fs::walker(".");
builder.include_dir_entries(true);
for entry in builder.walk()? {
    let entry = entry?;
    cu::info!("{} (dir: {})", entry.path().display(), entry.is_dir());
}