Skip to main content

classify_one

Function classify_one 

Source
pub fn classify_one(
    fs: &dyn Fs,
    paths: &dyn Pather,
    pack: &str,
    handler: &str,
    filename: &str,
    baseline: &Baseline,
) -> DivergenceReport
Expand description

Classify a single baseline against the current state on disk.

The deployed-file path is derived from the datastore layout: a preprocessor-expanded file lives at <data_dir>/packs/<pack>/<handler>/<filename>. The user’s home-side symlink dereferences to this path, so reading the bytes here is the same as reading what the user sees — the double-link model means the deployed file is the file in the datastore.