EntryExtractionProgress not report directorys and some files. #451

Open
opened 2026-01-29 22:12:18 +00:00 by claunia · 2 comments
Owner

Originally created by @MiyamuraMiyako on GitHub (Apr 10, 2021).

SampleCode:

var archive = SevenZipArchive.Open("V0-To-V1.7z");
var reader = archive.ExtractAllEntries();

reader.EntryExtractionProgress += (send, ee) =>
{
      if (!ee.Item.IsDirectory)
      {
            Console.WriteLine(ee.Item.Key);
      }
};
reader.WriteAllToDirectory(Program.CacheFolder, new SharpCompress.Common.ExtractionOptions() { Overwrite = true, ExtractFullPath = true, PreserveFileTime = true });

Sample 7Z file(decompress zip first):
V0-To-V1_2.zip

Originally created by @MiyamuraMiyako on GitHub (Apr 10, 2021). SampleCode: ```C# var archive = SevenZipArchive.Open("V0-To-V1.7z"); var reader = archive.ExtractAllEntries(); reader.EntryExtractionProgress += (send, ee) => { if (!ee.Item.IsDirectory) { Console.WriteLine(ee.Item.Key); } }; reader.WriteAllToDirectory(Program.CacheFolder, new SharpCompress.Common.ExtractionOptions() { Overwrite = true, ExtractFullPath = true, PreserveFileTime = true }); ``` Sample 7Z file(decompress zip first): [V0-To-V1_2.zip](https://github.com/adamhathcock/sharpcompress/files/6289662/V0-To-V1_2.zip)
claunia added the enhancementbugup for grabs labels 2026-01-29 22:12:18 +00:00
Author
Owner

@MiyamuraMiyako commented on GitHub (Apr 11, 2021):

And some file repeat report multiple times.

@MiyamuraMiyako commented on GitHub (Apr 11, 2021): And some file repeat report multiple times.
Author
Owner

@adamhathcock commented on GitHub (Apr 24, 2021):

Progress should be reimplemented differently. I haven't looked at this functionality in a long time.

@adamhathcock commented on GitHub (Apr 24, 2021): Progress should be reimplemented differently. I haven't looked at this functionality in a long time.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#451