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

Archiving zip files creates a folder

Open simoncarbajal opened this issue 4 years ago • 0 comments

The following code creates a folder and inside this folder appends the zip file

archive.append(stream, { name: 'myAppended1.zip' })
archive.append(stream, { name: 'myAppended2.zip' })
...

The result is something with this shape:

file.zip
    -> myAppended1/myAppended1.zip
    -> myAppended2/myAppended2.zip

Desired result:

file.zip
    -> myAppended1.zip
    -> myAppended2.zip

simoncarbajal avatar Jun 23 '21 06:06 simoncarbajal