mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
Archives with compressed empty files can not be opened with standart Mac Archive Utility #203
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).
Originally assigned to: @adamhathcock on GitHub.
The archive empty_file.zip from 7z can be opened with Mac "Archive Utility" unlike archive
empty_file_sharpcompress.zip that has been compressed with SharpCompress using
ZipWriter. 7z unpack such files fine.I'm trying to open this archive but get the error "Error opening a zip file: No such file or directory".
Current workaround: check size of every file and ignore zero-length files:
@adamhathcock commented on GitHub (Jul 5, 2017):
I'm currently on holiday for a while. I'll have to fix look to fix this afterwards.
@adamhathcock commented on GitHub (Jul 17, 2017):
Is this the complete code sample that you use with empty_file.zip? It looks incorrect.
I don't have an issue writing to a null stream or anything.
@KvanTTT commented on GitHub (Oct 12, 2017):
Sure! Here is a full C# code with input
empty_fileand outputempty_file_sharpcompress.ziparchive.Program.cs
With above code I'm getting the following error on Mac:
7z extracts such archive without problems.