Skip to main content

stat_dir_with_progress

Function stat_dir_with_progress 

Source
pub fn stat_dir_with_progress(root: &Path, on_dir: &mut dyn FnMut()) -> Cache
Expand description

Same as stat_dir but invokes on_dir once per directory entry observed during the walk. The callback is the per-cache progress hook used by the startup scan to feed Msg::ScanProgress to the TUI.