i have here a ZIP-Archive from a external team, that i must extract automatically to using in another program.
The archive was created with 7-zip 9.20 64-Bit on Ubuntu 16.04 TLS. The command was:
7z a "test_ubuntu.zip" "/tmp/test"
It seems that 7-zip does not store the File-Attribute in the Archive to the file (
ZipItem.ItemType = ArchiveItemType.File).
Extracting of the files with any Zip-Programs (WinRAR, WinZip, 7-zip) is possible without problems.
Is it possible in any way to extract the files? Follwing i have tried:
ZipItem.ExtractToFile("C:\test\" & ZipItem.Name, Rebex.IO.ActionOnExistingFiles.OverwriteAll)
ZipItem.ExtractToDirectory("C:\", Rebex.IO.TraversalMode.NonRecursive, Rebex.IO.ActionOnExistingFiles.OverwriteAll)
Extracting the whole Archive with
ZipArchive.ExtractAll("C:\test", Rebex.IO.TransferMethod.Copy, Rebex.IO.ActionOnExistingFiles.OverwriteAll)
I have nothing found in the options under
Tried several Events of the
Nothing works. Is there any way to force the extraction of the files (for example overwriting the
ZipItem.ItemType-Property or additional Options
I have uploaded a sample ZIP-File here.
I have another Library (DevExpress) here, that can handle those Archives. But this Library have no equal
In addition, i would realize this only with the Rebex-Librarys, because the Zip-Arichives send via Mail.
Thanks + Regards