MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / getDesktopUserDataPath

Function getDesktopUserDataPath

desktop/user-data-path.ts:27–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27export function getDesktopUserDataPath() {
28 if (cachedUserDataPath) {
29 return cachedUserDataPath
30 }
31
32 const configuredUserDataPath = getProcessEnvironmentVariable('HOWCODE_USER_DATA_PATH')?.trim()
33 if (configuredUserDataPath) {
34 cachedUserDataPath = configuredUserDataPath
35 return configuredUserDataPath
36 }
37
38 cachedUserDataPath = getDefaultElectronUserDataPath()
39 return cachedUserDataPath
40}

Callers 4

getChatSessionDirFunction · 0.90
getTranscriptDirectoryFunction · 0.90
getDatabasePathFunction · 0.90

Tested by

no test coverage detected