Skip to main content

start_scan

Function start_scan 

Source
pub fn start_scan(
    root: PathBuf,
    respect_gitignore: bool,
) -> (Receiver<ScanProgress>, CancelToken)
Expand description

Spawn a streaming filesystem scan rooted at root. Returns a receiver of ScanProgress batches (Batch until the walker finishes, then one terminal Finished) and a cancel handle. Dropping the cancel handle aborts the walker.