adm-zip icon indicating copy to clipboard operation
adm-zip copied to clipboard

On writeZip is it possible to define the folder name that gets created on extract different from file name?

Open dankbl opened this issue 1 year ago • 0 comments

I'm trying to duplicate the command zip -r build.zip php/* ;, which creates a zip named build.zip but on extract creates a php dir. But when I do

await zip.addLocalFolder('./php');
await zip.writeZipPromise('./build.zip');

It creates a build dir.

dankbl avatar Oct 25 '24 17:10 dankbl