MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / resolveDaemonDataDir

Function resolveDaemonDataDir

apps/cli/src/daemon-state.ts:75–76  ·  view source on GitHub ↗
(path: Path.Path)

Source from the content-addressed store, hash-verified

73// ---------------------------------------------------------------------------
74
75const resolveDaemonDataDir = (path: Path.Path): string =>
76 process.env.EXECUTOR_DATA_DIR ?? path.join(homedir(), ".executor");
77
78const sanitizeHostForPath = (hostname: string): string =>
79 hostname.replaceAll(/[^a-z0-9.-]+/gi, "_");

Callers 5

daemonRecordPathFunction · 0.85
daemonPointerPathFunction · 0.85
writeDaemonRecordFunction · 0.85
writeDaemonPointerFunction · 0.85
acquireDaemonStartLockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected