node-archiver icon indicating copy to clipboard operation
node-archiver copied to clipboard

support appending to existing archives

Open ctalkington opened this issue 11 years ago • 18 comments

this maybe be moved to v0.7 but the plan is to allow one to import an existing stream that contains zip data to be appended to.

ctalkington avatar Feb 18 '13 22:02 ctalkington

A really nice feature would be to be able to clone an Archiver instance. The use case for this would be if you are dynamically generating archives where most of the files are constant, but some change. You'd append the constant ones initially, then every time a new archive needed to be generated, you'd clone it and append the changed files.

alecmocatta avatar Nov 13 '13 23:11 alecmocatta

just not sure how this would function. would have to store and pull from buffers vs streaming. that could be quite a task.

ctalkington avatar Nov 14 '13 17:11 ctalkington

Hi! I would really benefit from this feature, just wondering how soon this would be implemented if it's still in plans?

andreywix avatar Jun 22 '14 17:06 andreywix

this should be possible in a few months time once compress-commons gets import/parse ability. still exploring potential implementation ideas.

ctalkington avatar Aug 24 '14 12:08 ctalkington

Sounds like a cool idea. I don't need it but :+1: anyway!

jimmywarting avatar Oct 26 '14 18:10 jimmywarting

Is there any update or workaround for this? I was hoping I could abandon adm-zip and use node-archiver instead but the lack of appending files to an existing zip archive is currently stopping me from doing so.

alocher avatar Oct 06 '15 00:10 alocher

:+1: This would be great! Would it also be possible to replace existing files in the zip?

caesar avatar Dec 12 '15 03:12 caesar

+1

dcrockwell avatar Dec 27 '15 12:12 dcrockwell

+1

orangewise avatar Feb 24 '16 14:02 orangewise

+1

lcolman avatar Nov 20 '16 03:11 lcolman

+1

sangoon avatar Feb 01 '17 13:02 sangoon

I also would ,like to avoid the adm-zip issue, see https://github.com/cthackers/adm-zip/issues/186

DrYSG avatar May 30 '17 14:05 DrYSG

i think the fastest path to doing something like this would be use a library that unzips and then having an adapter that converts it to archiver methods. im not sure if this will be included in archiver just yet but im happy to include an example in the repo if someone comes up with a solution for time being.

ctalkington avatar Jun 17 '17 17:06 ctalkington

hi sorry if its already addressed, but just wanted to confirm, if its possible to now update a existing zip files with new files and keep existing ones as it is.

Thanks

aksharj avatar Jul 24 '20 16:07 aksharj

Hi @aksharj can you tell us how do it?

Thx

gigaga avatar Sep 02 '20 14:09 gigaga

Hi @gigaga,i am also looking for a solution.

aksharj avatar Sep 03 '20 07:09 aksharj

@aksharj Hi, finally by using JSZIP I was able to update a zip file :)

gigaga avatar Sep 03 '20 08:09 gigaga

@gigaga - do you have an example you could post?

KyleMit avatar Sep 13 '20 18:09 KyleMit