MCPcopy
hub / github.com/upstash/context7 / ensureConfigDir

Function ensureConfigDir

packages/cli/src/utils/auth.ts:23–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23function ensureConfigDir(): void {
24 const configDir = getConfigDir();
25 if (!fs.existsSync(configDir)) {
26 fs.mkdirSync(configDir, { recursive: true, mode: 0o700 });
27 }
28}
29
30// Credentials must never be group/world-readable, even if a migrated or
31// pre-existing file carried looser permissions.

Callers 1

saveTokensFunction · 0.85

Calls 1

getConfigDirFunction · 0.85

Tested by

no test coverage detected