MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / getDataDir

Function getDataDir

apps/kimi-code/src/utils/paths.ts:33–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 * Priority: `KIMI_CODE_HOME` env var > `~/.kimi-code`.
32 */
33export function getDataDir(): string {
34 const envDir = process.env[KIMI_CODE_HOME_ENV];
35 if (envDir) {
36 return envDir;
37 }
38 return join(homedir(), KIMI_CODE_DATA_DIR_NAME);
39}
40
41/**
42 * Return the diagnostic log directory: `<dataDir>/logs/`.

Callers 15

paths.test.tsFile · 0.90
getTuiConfigPathFunction · 0.90
getCustomThemesDirFunction · 0.90
handleWebCommandFunction · 0.90
buildKimiDefaultHeadersFunction · 0.90
kill.tsFile · 0.90
run.tsFile · 0.90
handlePsCommandFunction · 0.90
getLogDirFunction · 0.85
getCacheDirFunction · 0.85
getBinDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected