Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ER: Use the data written rather than the data read to report progress #2

Closed
pbatard opened this issue Aug 28, 2015 · 1 comment
Closed

Comments

@pbatard
Copy link
Owner

pbatard commented Aug 28, 2015

As per pbatard/rufus#580. This may require figuring out the expected extracted size beforehand though...

@pbatard
Copy link
Owner Author

pbatard commented Sep 3, 2015

This will be difficult to add, as we need to know the uncompressed size of the file, and some of the formats we use (.Z, .bz2) are stream compression formats and do not store that information. This means, we'd have to uncompress the whole thing to get the size.

Only .zip and .gz seem to provide the uncompressed size in an easy to read manner (but even then, there is no guarantee that this data will present for gzip).
As to .lzma (and by extension .xz), you'd have to uncompress part of the file to get that info...

Considering this, the progress information will have to remain read-based.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant