MCPcopy
hub / github.com/coder/mux / writeSSHConfig

Function writeSSHConfig

src/node/runtime/muxSshConfigWriter.test.ts:38–41  ·  view source on GitHub ↗
(sshConfigPath: string, content: string)

Source from the content-addressed store, hash-verified

36 }
37
38 async function writeSSHConfig(sshConfigPath: string, content: string): Promise<void> {
39 await fs.mkdir(path.dirname(sshConfigPath), { recursive: true, mode: 0o700 });
40 await fs.writeFile(sshConfigPath, content, "utf8");
41 }
42
43 async function readSSHConfig(sshConfigPath: string): Promise<string> {
44 return fs.readFile(sshConfigPath, "utf8");

Callers 1

Calls 1

writeFileMethod · 0.65

Tested by

no test coverage detected