Skip to main content

candidate_paths

Function candidate_paths 

Source
pub fn candidate_paths(
    index: &Index,
    pattern: &str,
    opts: SearchOptions,
) -> Vec<PathBuf>
Expand description

Resolve the candidate files for pattern as owned paths, so a caller holding the index lock can release it before the (potentially long) ripgrep confirm + output streaming — never hold the index lock across blocking I/O. A fallback pattern yields every live file.