Function xvc_walker::walk_parallel
source · pub fn walk_parallel(
ignore_rules: IgnoreRules,
dir: &Path,
walk_options: WalkOptions,
path_sender: Sender<Result<PathMetadata>>,
ignore_sender: Sender<Result<IgnoreRules>>
) -> Result<()>Expand description
Walk all child paths under dir and send non-ignored paths to path_sender.
Newly found ignore rules are sent through ignore_sender.
The ignore file name (.xvcignore, .gitignore, .ignore, …) is set by walk_options.
It lists elements of a file, then creates a new crossbeam scope for each child directory and calls itself recursively. It may not be feasible for small directories to create threads.