Skip to main content

detect

Function detect 

Source
pub fn detect(
    candidates: &[(String, PathBuf)],
    threshold: i64,
) -> Vec<DuplicateGroup>
Expand description

Find groups of duplicate weight files among candidates (name, path pairs). Files smaller than threshold are ignored. Candidates are bucketed by exact size, then confirmed by a fingerprint over the first and last megabyte, so only same-size, same-fingerprint files are reported. Groups are returned most-wasteful first.