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

Function getCacheFolder

src/spec-node/utils.ts:639–641  ·  view source on GitHub ↗
(cliHost: CLIHost)

Source from the content-addressed store, hash-verified

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');
641}
642
643export async function getLocalCacheFolder() {
644 return path.join(os.tmpdir(), process.platform === 'linux' ? `devcontainercli-${await getLocalUsername()}` : 'devcontainercli');

Callers 8

createDockerParamsFunction · 0.90
getExtendImageBuildInfoFunction · 0.90
updateRemoteUserUIDFunction · 0.90
featuresUpgradeFunction · 0.90
outdatedFunction · 0.90
readFeaturesConfigFunction · 0.90
createFeaturesTempFolderFunction · 0.85

Calls 2

tmpdirMethod · 0.80
getUsernameMethod · 0.80

Tested by

no test coverage detected