MCPcopy
hub / github.com/codeaashu/claude-code / getXDGStateHome

Function getXDGStateHome

src/utils/xdg.ts:32–35  ·  view source on GitHub ↗
(options?: XDGOptions)

Source from the content-addressed store, hash-verified

30 * @param options Optional env and homedir overrides for testing
31 */
32export function getXDGStateHome(options?: XDGOptions): string {
33 const { env, home } = resolveOptions(options)
34 return env.XDG_STATE_HOME ?? join(home, '.local', 'state')
35}
36
37/**
38 * Get XDG cache home directory

Callers 2

getBaseDirectoriesFunction · 0.85
DoctorFunction · 0.85

Calls 1

resolveOptionsFunction · 0.85

Tested by

no test coverage detected