mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
Files in archives obtained from Mac Archive Utility have a zero Size and CompressedSize #206
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @KvanTTT on GitHub (Jul 3, 2017).
I'm using the following code to read files from archive:
I also attach an archive obtained from Mac Archive Utility: file.txt.zip
@adamhathcock commented on GitHub (Jul 5, 2017):
If they are archives created with
ZipWriterwhich uses a post-file descriptor to store the file length and compressed size, then aZipReaderwon't know the sizes before decompressing.This is just how the forward-only reading/writing works. It uses the information is has at the time without moving through the streams. I should probably make things nullable to know the difference between no information and an actual zero size.