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

Function ensureSocketDir

src/daemon/socket-path.ts:89–95  ·  view source on GitHub ↗
(socketPath: string)

Source from the content-addressed store, hash-verified

87}
88
89export function ensureSocketDir(socketPath: string): void {
90 const dir = dirname(socketPath);
91 if (!existsSync(dir)) {
92 mkdirSync(dir, { recursive: true, mode: 0o700 });
93 }
94 validateSocketDir(dir);
95}
96
97export function removeStaleSocket(socketPath: string): void {
98 if (existsSync(socketPath)) {

Callers 2

mainFunction · 0.90

Calls 2

existsSyncFunction · 0.85
validateSocketDirFunction · 0.85

Tested by

no test coverage detected