Skip to main content

[truezip-issues] [JIRA] Resolved: (TRUEZIP-322) Why not allow appending of file to existing zip file by appending without creating new zip ?

  • From: "Christian Schlichtherle (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [truezip-issues] [JIRA] Resolved: (TRUEZIP-322) Why not allow appending of file to existing zip file by appending without creating new zip ?
  • Date: Thu, 13 Jun 2013 17:19:09 +0000 (UTC)
  • Auto-submitted: auto-generated


     [ 
https://java.net/jira/browse/TRUEZIP-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schlichtherle resolved TRUEZIP-322.
---------------------------------------------

    Resolution: Complete

This feature has been added with FsOutputOption.GROW in TrueZIP 7.3.

Here's an introductory blog post: 
http://truezip.schlichtherle.de/2011/07/26/appending-to-zip-files/

And here's another blog post explaining how to compact a grown archive file 
again: http://truezip.schlichtherle.de/2011/07/27/compacting-archive-files/


> Why not allow appending of file to existing zip file by appending without 
> creating new zip ?
> --------------------------------------------------------------------------------------------
>
>                 Key: TRUEZIP-322
>                 URL: https://java.net/jira/browse/TRUEZIP-322
>             Project: TrueZIP
>          Issue Type: Improvement
>            Reporter: colbertphilippe
>            Assignee: Christian Schlichtherle
>
> TrueZip does have functions that will append new files to an existing zip 
> archive file but it does this by creating a new zip archive file and 
> copying over all file entries from the prior zip file and the new files to 
> be appended.   That can be very inefficient if the prior zip file is very 
> big.
> It seems to me that the proper way of doing this is to reverse-engineer the 
> prior zip file.  While respecting the official format of zip file, the 
> prior zip file should be opened and the content lookup table (located at 
> the end of the zip file) should be read in memory or even in a temporary 
> file.  The new files should be written (thus overriding the location of the 
> content table) and at the end the content lookup tables (with entries of 
> new files) should be written at the end of the augmented file.
> This is the most efficient way of doing it, but nobody that I know has done 
> it.
> Why can't TrueZip do that?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[truezip-issues] [JIRA] Created: (TRUEZIP-322) Why not allow appending of file to existing zip file by appending without creating new zip ?

colbertphilippe (JIRA) 06/13/2013

[truezip-issues] [JIRA] Resolved: (TRUEZIP-322) Why not allow appending of file to existing zip file by appending without creating new zip ?

Christian Schlichtherle (JIRA) 06/13/2013
 
 
Close
loading
Please Confirm
Close