DinoChiesa / DotNetZip

Library for creating and reading .ZIP files from a .NET Language
Other
118 stars 41 forks source link

Failed to zip some OLE files #7

Open phuclv90 opened 4 years ago

phuclv90 commented 4 years ago

Attached below is an OLE file (specifically *.doc file). Zipping it alone produces a proper result. However if it is put in a folder with other files/folders and zip the whole folder then the output zip file is corrupted. Compression tools report a CRC error of that OLE file when extracting that output file

using(var zip = new ZipFile())
{
    zip.AddDirectory(inputFolder);
    zip.Save(outputFile);
}

FailedToZip.zip

peter-dolkens commented 4 years ago

I recommend checking https://github.com/haf/DotNetZip.Semverd as it appears this project is simply a snapshot, whilst the other project has full history, and at least a minimal amount of maintenance.