(root: string)
| 61 | * first, as `codegraph init` would, with the mode the umask gives it. |
| 62 | */ |
| 63 | export function daemonBindPath(root: string): string { |
| 64 | if (process.platform !== 'win32') fs.mkdirSync(path.dirname(getDaemonSocketCandidates(root)[0]!), { recursive: true }); |
| 65 | return getDaemonBindCandidates(root)[0]!; |
| 66 | } |
| 67 | |
| 68 | export async function startFakeDaemon(root: string, opts: FakeDaemonOptions): Promise<FakeDaemon> { |
| 69 | const socketPath = opts.socketPath ?? daemonBindPath(root); |
no test coverage detected