diff --git a/src/network.rs b/src/network.rs index 42247ac..afbe25f 100644 --- a/src/network.rs +++ b/src/network.rs @@ -23,7 +23,7 @@ fn sha256sum_file(path: &Path) -> Result { pub(crate) fn sha256sum_file_tag(path: &Path) -> Result<()> { let mut f = File::create(format!("{}.sha256sum", path.to_string_lossy()))?; - f.write_all(format!("{} *{}", sha256sum_file(path)?, path.to_string_lossy()).as_bytes())?; + f.write_all(format!("{} *{}", sha256sum_file(path)?, path.file_name().to_string_lossy()).as_bytes())?; Ok(()) }