MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / ensureConfigDirExists

Function ensureConfigDirExists

cli/src/utils/settings.ts:45–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 * Ensure the config directory exists, creating it if necessary
44 */
45const ensureConfigDirExists = (): void => {
46 const configDir = getConfigDir()
47 if (!fs.existsSync(configDir)) {
48 fs.mkdirSync(configDir, { recursive: true })
49 }
50}
51
52/**
53 * Load all settings from file system

Callers 2

loadSettingsFunction · 0.85
saveSettingsFunction · 0.85

Calls 1

getConfigDirFunction · 0.90

Tested by

no test coverage detected