On 2020-06-28, Peter Lee wrote: > Currently we will add a Zip64 extra field for the entries with uncompressed > size unspecified. And we will update the zip64 extra field in > ZipArchiveOutputStream.rewriteSizesAndCrc a little bit : if we actually > doesn't need a Zip64 extra, we will not remove it. Instead we keep it in > Local File Header, and we update the 'Zip Version Needed to Extract' to the > ones without zip64. Then we removed the extra field(after it's already > written to the zip archive) to avoid the zip64 written to the Central > Directory.
> Not sure why we are doing it like that. We only know the sizes once we've written the entry's content to the archive. The content is behind the extra field. Removing the extra field from the archive would require us move all content a few bytes towards the front of the archive. Potentially a lot of effort which will only gain us a few bytes. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org