MCPcopy Create free account
hub / github.com/Azure/powershell / extractZip

Function extractZip

lib/index.js:4204–4218  ·  view source on GitHub ↗

* Extract a zip * * @param file path to the zip * @param dest destination directory. Optional. * @returns path to the destination directory

(file, dest)

Source from the content-addressed store, hash-verified

4202 * @returns path to the destination directory
4203 */
4204function 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}
4219exports.extractZip = extractZip;
4220function extractZipWin(file, dest) {
4221 return __awaiter(this, void 0, void 0, function* () {

Callers

nothing calls this directly

Calls 3

_createExtractFolderFunction · 0.85
extractZipWinFunction · 0.85
extractZipNixFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…