Skip to content

Commit

Permalink
Add extra output to jean to figure out why rc-zip doesn't detect this…
Browse files Browse the repository at this point in the history
… file as zip64
  • Loading branch information
fasterthanlime committed Jan 26, 2024
1 parent ab5e9d1 commit e11dfa5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/jean/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ fn do_main(cli: Cli) -> Result<(), Box<dyn std::error::Error>> {
if let Some(comment) = archive.comment() {
println!("Comment:\n{}", comment);
}
let has_zip64 = archive.entries().any(|entry| entry.inner.is_zip64);
println!("{}", if has_zip64 { "Zip64" } else { "Zip32" });

let mut creator_versions = HashSet::<rc_zip::Version>::new();
let mut reader_versions = HashSet::<rc_zip::Version>::new();
Expand Down Expand Up @@ -156,6 +158,11 @@ fn do_main(cli: Cli) -> Result<(), Box<dyn std::error::Error>> {
if let Some(comment) = entry.comment() {
print!("\t{comment}", comment = comment);
}
if entry.inner.is_zip64 {
print!("\tZip64");
} else {
print!("\tZip32");
}
}
println!();
}
Expand Down

0 comments on commit e11dfa5

Please sign in to comment.