Skip to main content

compute_diff

Function compute_diff 

Source
pub fn compute_diff(root: &Path, manifest: &Manifest) -> Result<DiffResult>
Expand description

Compare the filesystem at root against the manifest to find changes.

Uses a two-level strategy:

  1. Directory mtime — if unchanged, skip the entire subtree
  2. File (mtime, size) — if changed, blake3-hash the content to confirm

§Errors

Returns an error if the root directory cannot be read.