Skip to main content

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

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

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