MCPcopy Index your code
hub / github.com/devcontainers/cli / createFeaturesTempFolder

Function createFeaturesTempFolder

src/spec-node/utils.ts:630–637  ·  view source on GitHub ↗
(params: { cliHost: CLIHost; package: PackageConfiguration })

Source from the content-addressed store, hash-verified

628}
629
630export async function createFeaturesTempFolder(params: { cliHost: CLIHost; package: PackageConfiguration }): Promise<string> {
631 const { cliHost } = params;
632 const { version } = params.package;
633 // Create temp folder
634 const tmpFolder: string = cliHost.path.join(await getCacheFolder(cliHost), 'container-features', `${version}-${Date.now()}`);
635 await cliHost.mkdirp(tmpFolder);
636 return tmpFolder;
637}
638
639export async function getCacheFolder(cliHost: CLIHost): Promise<string> {
640 return cliHost.path.join(await cliHost.tmpdir(), cliHost.platform === 'linux' ? `devcontainercli-${await cliHost.getUsername()}` : 'devcontainercli');

Callers 2

getExtendImageBuildInfoFunction · 0.90
readFeaturesConfigFunction · 0.90

Calls 2

getCacheFolderFunction · 0.85
mkdirpMethod · 0.65

Tested by

no test coverage detected