haf / DotNetZip.Semverd

Please use System.IO.Compression! A fork of the DotNetZip project without signing with a solution that compiles cleanly. This project aims to follow semver to avoid versioning conflicts. DotNetZip is a FAST, FREE class library and toolset for manipulating zip files. Use VB, C# or any .NET language to easily create, extract, or update zip files.
Other
545 stars 218 forks source link

Last modification date lost when saving #288

Open DoerrSt opened 6 months ago

DoerrSt commented 6 months ago

Hello, I am open an existing ZIP file and remove some files from the archive, after saving it with a new name the "last modification date" in the new ZIP file is set to the current date/time instead of using the existing attributes in the zip entry-class.

like

Dim zip As New ZipFile("C:\temp\zipfile.zip") ' Remove an entry using zip.RemoveEntry(entry) zip.Save("c:\temp\newzip.zip")

Not sure if this behaviour is by intention, my expectation was that the attributes in each zip-entry stay unchanged. Thanks!