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

bug: addLocalFolderPromise is not work

Open dagouzhi opened this issue 1 year ago • 0 comments

const admzip = new AdmZip();
await admzip.addLocalFolderPromise('xxxx', {
    filter: (filename) => {
      if (!/^(?:(?!\.map$).)*$/gi.test(filename)) {
        return false
      }
      return true;
    }
 })
await admzip.writeZipPromise('xxxx/dist.zip');

dagouzhi avatar Aug 08 '24 10:08 dagouzhi