Skip to content

Commit

Permalink
added more debugging shit
Browse files Browse the repository at this point in the history
  • Loading branch information
MordechaiHadad committed Aug 8, 2024
1 parent d6cf6b1 commit 60bd107
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/helpers/checksum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ use std::{fs, io};
/// If there is an error opening or reading the files, the function returns `Err(error)`.
pub fn sha256cmp(a: &Path, b: &Path) -> Result<bool> {
info!("Checking checksum of file at path: {:?}", a);
if !a.exists() {
info!("PLZZZ NOOOOOOOOOOOOOOOO {}", a.display());
}
let checksum = fs::read_to_string(b)?;
let checksum = checksum.split(' ').next().unwrap();

Expand Down

0 comments on commit 60bd107

Please sign in to comment.