You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
Users can easily get progress of streaming files from a ZIP by counting bytes on the stream returned by
openReadStream()
and calculating as proportion ofentry.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 ofentry.compressedSize
(which is accurate).This cannot be performed externally and would need some kind of "hook" within
yauzl-promise
.The text was updated successfully, but these errors were encountered: