Open MiyamuraMiyako opened 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
And some file repeat report multiple times.
Progress should be reimplemented differently. I haven't looked at this functionality in a long time.
SampleCode:
Sample 7Z file(decompress zip first): V0-To-V1_2.zip