mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-08 05:27:04 +00:00
How do I calculate or get the progress when decompressing a split RAR archive? #389
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tardezyx on GitHub (Jan 6, 2020).
I decompress a single split RAR archive consisting of 10 rar-files with SharpCompress like this:
It is successfully extracted but the output I get from the progress is more than confusing. It repeats a value of "10,9...", then come some "0" and inbetween a "21,8,...". It does not count further to "32,7" etc. What is wrong here!?
@tardezyx commented on GitHub (Jan 6, 2020):
Okay, got it:
I do not need to calculate the substreams (or whatever he is doing within
archive.CompressedBytesRead) but the actual size of the files he is extracting.Corrected code:
This "issue" can be closed :)