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

Function _createExtractFolder

lib/index.js:4452–4461  ·  view source on GitHub ↗
(dest)

Source from the content-addressed store, hash-verified

4450}
4451exports.findFromManifest = findFromManifest;
4452function _createExtractFolder(dest) {
4453 return __awaiter(this, void 0, void 0, function* () {
4454 if (!dest) {
4455 // create a temp dir
4456 dest = path.join(_getTempDirectory(), v4_1.default());
4457 }
4458 yield io.mkdirP(dest);
4459 return dest;
4460 });
4461}
4462function _createToolPath(tool, version, arch) {
4463 return __awaiter(this, void 0, void 0, function* () {
4464 const folderPath = path.join(_getCacheDirectory(), tool, semver.clean(version) || version, arch || '');

Callers 4

extract7zFunction · 0.85
extractTarFunction · 0.85
extractXarFunction · 0.85
extractZipFunction · 0.85

Calls 1

_getTempDirectoryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…