node-archiver
node-archiver copied to clipboard
Archiving zip files creates a folder
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