adamhathcock / sharpcompress

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

reporting progress on multi Rar extraction #361

Open CrownParkComputing opened 6 years ago

CrownParkComputing commented 6 years ago

I have a backgroundworker processing multi rar files,

        var streams = allFiles.Select(s => Path.Combine("", s)).Select(File.OpenRead).ToList();

        using (var archive = RarArchive.Open(streams))
        {

            foreach (var entry in archive.Entries.Where(entry => !entry.IsDirectory))
            {

                    entry.WriteToDirectory(archiveExtractPath, new ExtractionOptions()
                    {
                        ExtractFullPath = true,
                        Overwrite = true
                    });
                i += 1;
                worker.ReportProgress(i);
            }

        }

I want to report the progress of the stream being processed, I cannot find anyway to report on this ?

atecey commented 6 years ago

Did you ever find out a way to do this?

CrownParkComputing commented 6 years ago

No never got round to it, left it for a while now trying it again in new codebase