* Extract a zip * * @param file path to the zip * @param dest destination directory. Optional. * @returns path to the destination directory
(file, dest)
| 4202 | * @returns path to the destination directory |
| 4203 | */ |
| 4204 | function extractZip(file, dest) { |
| 4205 | return __awaiter(this, void 0, void 0, function* () { |
| 4206 | if (!file) { |
| 4207 | throw new Error("parameter 'file' is required"); |
| 4208 | } |
| 4209 | dest = yield _createExtractFolder(dest); |
| 4210 | if (IS_WINDOWS) { |
| 4211 | yield extractZipWin(file, dest); |
| 4212 | } |
| 4213 | else { |
| 4214 | yield extractZipNix(file, dest); |
| 4215 | } |
| 4216 | return dest; |
| 4217 | }); |
| 4218 | } |
| 4219 | exports.extractZip = extractZip; |
| 4220 | function extractZipWin(file, dest) { |
| 4221 | return __awaiter(this, void 0, void 0, function* () { |
nothing calls this directly
no test coverage detected
searching dependent graphs…