node-zip-stream icon indicating copy to clipboard operation
node-zip-stream copied to clipboard

[Q] Writing file part by part ?

Open Ehmydev opened this issue 2 years ago • 0 comments

Hello,

I'm wondering if it is possible to add files into the zip part by part. By that, i mean something like this :

archive.entry('part1', { name: 'file.txt' }, function(err, entry) {
  if (err) throw err;
  archive.entry('part2', { name: 'file.txt' }, function(err, entry) {
    if (err) throw err;
    archive.finish();
  });
});

Which create only one file without overwriting, but appending instead, with 'part1part2' as content.

If not, will it ever be implemented in the future ? If you have any other alternative, i'm taking it.

Thanks by advance

Ehmydev avatar Jul 04 '22 14:07 Ehmydev