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

How to preserve timestamps of folders? #272

Open anmac1789 opened 1 year ago

anmac1789 commented 1 year ago

I have a question about extracting zip files with android folders. So, I've been making zip files of android folders with many apps and when extracting them on PC, some zips retain all 3 dates --- date created, date modified, date accessed. So, it seems like the date modified of a folder, gets expanded into date created and date accessed and I want this to happen.

The problem occurs with timestamps. When extracting folders, the timestamps get forwarded by +1 second or get -1 reversed by 1 second. I want the timestamps to be equal as inside the zip archive. How can I achieve this? where the exact second is preserved during extraction especially for folders ?

Thanks