(socketPath: string)
| 87 | } |
| 88 | |
| 89 | export 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 | |
| 97 | export function removeStaleSocket(socketPath: string): void { |
| 98 | if (existsSync(socketPath)) { |
no test coverage detected