reporting progress on multi Rar extraction #283

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

Originally created by @CrownParkComputing on GitHub (Mar 23, 2018).

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 ?

Originally created by @CrownParkComputing on GitHub (Mar 23, 2018). 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 ?
Author
Owner

@atecey commented on GitHub (Jun 6, 2018):

Did you ever find out a way to do this?

@atecey commented on GitHub (Jun 6, 2018): Did you ever find out a way to do this?
Author
Owner

@CrownParkComputing commented on GitHub (Jun 8, 2018):

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

@CrownParkComputing commented on GitHub (Jun 8, 2018): No never got round to it, left it for a while now trying it again in new codebase
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#283