Skip to main content

walk_project_files_while

Function walk_project_files_while 

Source
pub fn walk_project_files_while(
    root: &Path,
    access: IgnoreFileAccess,
    keep_walking: impl Fn() -> bool + Send + Sync + 'static,
) -> impl Iterator<Item = PathBuf>
Expand description

Stop before advancing the directory iterator, not just between source files. Unsupported files and directories still consume a caller’s walk budget.