FastZip does not set Directory attributes on extract
Steps to reproduce
- Initialize A FastZip object with RestoreDateTimeOnExtract and/or RestoreAttributesOnExtract is set to true
- Extract a zip file that contains at least one folder
Expected behavior
All extracted folders should have their original datetime and/or file attributes set as defined in the zip file.
Actual behavior
Folders have no attributes set and datetime is not the one defined in the zip file.
Version of SharpZipLib
All
Obtained from (only keep the relevant lines)
- Package installed using NuGet
No, you're right, that's not supported right now.
But please update the issue with the issue template.
@ZTHawk does the change in #433 help with the directory modified times in your case? (That change purely does times to keep it simple)
What do you mean by "does times"? As in, that it doesn't cover attributes? I'm not even sure how attributes on directories work, as there are no Get/SetAttributes in System.IO.Directory.
Yes, that it doesn't cover attributes.
I haven't really thought about the attribute side, but they can be accessed via the Attributes property on DirectoryInfo (ZipEntryFactory uses that to read them when creating entries)
Turns out that you can use File.SetAttributes() on directories too. Oh well.
Merging #433 should have fixed the timestamp part of this.
Renaming this since it's partially resolved.