Open joenix opened 2 years ago
Having the same issue.
So just for clarification, we have a dist
folder with some files:
We want to compress the dist
folder into dist.tgz
and keep the folder structure without nesting the div
folder inside dist.tgz/dist/...
Is there a way to do this ?
Maybe you can set the opt { ignoreBase: true } to solve the problem.
eg: compressing.zip.compressDir(srcUrl,dsetUrl,{ ignoreBase: true })
How can i use zip.compressDir without origin directory ?