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.