As DoCreateEntryFromFile logic should Directory LastWriteTime should be keeped and used for the created Entry. #73613
Unanswered
ChristopheDEBOVE
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was doing characterization testing with Verify and I notice that when we execute CreateFromDirectory serveral time, given the same input the output it should be consistent, but it is not because the default LastWriteTime used for the entry is DateTime.Now.
Maybe it could use Directory LastWriteTime as you did for files, logic should be the same.
runtime/src/libraries/System.IO.Compression.ZipFile/src/System/IO/Compression/ZipFile.Create.cs
Line 406 in e71a958
In my case I have to overwrite the LastWriteTime for each directory entries in my test in order to simulate consistency.
Beta Was this translation helpful? Give feedback.
All reactions