The extract files` modified time are wrong. #249

Open
opened 2026-01-29 22:08:59 +00:00 by claunia · 0 comments
Owner

Originally created by @WcLyic on GitHub (Oct 20, 2017).

Version:0.18.2
Archive:TestArchives\Archives\Zip.deflate.zip

Below is the code i used. The extract files` modifiled time just like the create time rather than the modifiled time of original file.

using (archive = ArchiveFactory.Open(path,
    new ReaderOptions { ArchiveEncoding = new SharpCompress.Common.ArchiveEncoding { Default = Encoding.Default } }))
{
    archive.WriteToDirectory(expath,
        new ExtractionOptions
       {
            ExtractFullPath = true,
            Overwrite = true
       });
 }
Originally created by @WcLyic on GitHub (Oct 20, 2017). Version:0.18.2 Archive:TestArchives\Archives\Zip.deflate.zip Below is the code i used. The extract files` modifiled time just like the create time rather than the modifiled time of original file. ```csharp using (archive = ArchiveFactory.Open(path, new ReaderOptions { ArchiveEncoding = new SharpCompress.Common.ArchiveEncoding { Default = Encoding.Default } })) { archive.WriteToDirectory(expath, new ExtractionOptions { ExtractFullPath = true, Overwrite = true }); } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#249