MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / ensureLogDir

Function ensureLogDir

src/daemon.ts:102–107  ·  view source on GitHub ↗
(logPath: string)

Source from the content-addressed store, hash-verified

100}
101
102function ensureLogDir(logPath: string): void {
103 const dir = dirname(logPath);
104 if (!existsSync(dir)) {
105 mkdirSync(dir, { recursive: true, mode: 0o700 });
106 }
107}
108
109function resolveLogLevel(): ReturnType<typeof normalizeLogLevel> {
110 const raw = process.env.XCODEBUILDMCP_DAEMON_LOG_LEVEL;

Callers 1

mainFunction · 0.85

Calls 1

existsSyncFunction · 0.85

Tested by

no test coverage detected