This commit is contained in:
Mateusz Gruszczyński committed 2026-11-19 23:17:19 +01:00
1 parent 45b1fc04c7
commit 8b7f5dbfb8
21 files changed
+765 -413

No files matched your search

+2 -2
View File
@@ -454,11 +454,11 @@ fn hash_file(path: &Path) -> Result<(u64, String)> {
.context("backup input too large")?;
hasher.update(&buffer[..read]);
}
Ok((size, format!("{:x}", hasher.finalize())))
Ok((size, crate::hex::encode_lower(&hasher.finalize())))
}
fn hash_bytes(bytes: &[u8]) -> String {
format!("{:x}", Sha256::digest(bytes))
crate::hex::encode_lower(&Sha256::digest(bytes))
}
fn excluded_directory(name: &str) -> bool {