SevenZipExtractor icon indicating copy to clipboard operation
SevenZipExtractor copied to clipboard

Added callbacks to ArchiveFile.Extract and Entry.Extract for progress events.

Open runemoennike opened this issue 2 years ago • 4 comments

The IArchiveExtractCallback contains SetTotal and SetCompleted which are called at various points during file extraction. These points differ between file formats, but along with GetStream some form of progress reporting is possible, which is what this commit introduces.

The Extract methods on ArchiveFile and Entry now accept an event handler that will be called with the new ArchiveExtractionProgressEventArgs and EntryExtractionProgressEventArgs, respectively, as the extraction progresses. Please note that it is very inconsistent when this is invoked, depending on the format. However, it is guaranteed to be called at least at the beginning and end of extracting each file.

runemoennike avatar Aug 24 '22 07:08 runemoennike

Rune, thanks for your work! I'll review asap, clients are tearing me apart 😅

adoconnection avatar Sep 01 '22 11:09 adoconnection

No worries :)

runemoennike avatar Sep 01 '22 11:09 runemoennike

@runemoennike how can i use your update, i downloaded the latest source but that does not includes your files/changes :( and more over i am not that good on git..

is it possible for you to give me the updates source and a test function that can monitor the progress please?

thanks in advance @runemoennike @adoconnection

best regards

SalmaBegumJSR avatar Jan 11 '23 00:01 SalmaBegumJSR

@SalmaBegumJSR you have to clone my fork of the repo, and switch to branch 55. If you do it from a terminal/console, it looks like this:

git clone https://github.com/runemoennike/SevenZipExtractor
cd SevenZipExtractor
git checkout 55

runemoennike avatar Jan 11 '23 08:01 runemoennike