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

support await / promise when call extractAllTo mehtod

Open S112 opened this issue 1 year ago • 2 comments

I need to ensure that the extractAllTo method is completed before continuing to perform other program. Example:

const appPathTemp = join(moduleUpdatePath, DIST_MAP[moduleCode])
const zip = new AdmZip(filePath)
await zip.extractAllTo(appPathTemp)

But I find extractAllTo method not support. So how can i do? Thanks.

image

S112 avatar Jun 11 '23 05:06 S112