pub fn stat_dir_with_progress(root: &Path, on_dir: &mut dyn FnMut()) -> CacheExpand 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.