Skip to main content

walk

Function walk 

Source
pub fn walk(root: &Path, threads: usize, filter: &Filter) -> Result<Vec<Entry>>
Expand description

Walk root in parallel, returning entries sorted by relative path (so every parent directory precedes its children).

threads sets the worker-pool size (0 ⇒ jwalk default). filter drops any file/symlink whose relative path is excluded.

§Errors

Returns an error if root cannot be read, or if any entry’s metadata cannot be stat-ed.