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

Progress reporting for streaming files from Mac OS ZIPs #25

Open
overlookmotel opened this issue Jul 8, 2023 · 0 comments
Open

Progress reporting for streaming files from Mac OS ZIPs #25

overlookmotel opened this issue Jul 8, 2023 · 0 comments

Comments

@overlookmotel
Copy link
Owner

Users can easily get progress of streaming files from a ZIP by counting bytes on the stream returned by openReadStream() and calculating as proportion of entry.uncompressedSize.

Problem is Mac OS ZIP files where entry.uncompressedSize can be inaccurate. In this case, would need to calculate progress prior to decompression as a proportion of entry.compressedSize (which is accurate).

This cannot be performed externally and would need some kind of "hook" within yauzl-promise.

@overlookmotel overlookmotel changed the title Progress reporting for streaming files in Mac OS archives Progress reporting for streaming files from Mac OS ZIPs Jul 8, 2023
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