We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use std::fs::OpenOptions; fn main() { let mut zip = zip::ZipWriter::new( OpenOptions::new() .append(true) .create(true) .open("test.zip") .unwrap(), ); let options = zip::write::FileOptions::default().compression_method(zip::CompressionMethod::Stored); zip.start_file("hello_world.txt", options).unwrap(); zip.finish().unwrap(); }
as title, if we create a zip with append mode, it will fail to be unzip
it seems like some zero bytes were not cleared.
I'm sure the file is new created, not run multile times.
The text was updated successfully, but these errors were encountered:
I am pretty sure the append(true) on the file is the culprit here. Can you try without ?
append(true)
Sorry, something went wrong.
Try changing it to write(true); that'll be more convenient to test since it will overwrite any previous version.
write(true)
No branches or pull requests
as title, if we create a zip with append mode, it will fail to be unzip
it seems like some zero bytes were not cleared.
I'm sure the file is new created, not run multile times.
The text was updated successfully, but these errors were encountered: