pub fn verify_snapshot(snapshot: &Path) -> Result<VerifyReport, GitClosureError>Expand description
Verifies the structural and content integrity of a snapshot file.
Checks performed:
snapshot-hashheader matches recomputed hash over file metadata.- Each regular file’s
:sha256matchesSHA-256(content). - Each regular file’s
:sizematchescontent.len(). - Each path is safe (no
.., no absolute paths). - Each mode string is valid octal.