adamhathcock / sharpcompress

SharpCompress is a fully managed C# library to deal with many compression types and formats.
MIT License
2.27k stars 481 forks source link

EntryExtractionProgress not report directorys and some files. #589

Open MiyamuraMiyako opened 3 years ago

MiyamuraMiyako commented 3 years ago

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

MiyamuraMiyako commented 3 years ago

And some file repeat report multiple times.

adamhathcock commented 3 years ago

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