MCPcopy Index your code
hub / github.com/coderoad/coderoad-vscode / writeFile

Function writeFile

src/services/node/index.ts:51–57  ·  view source on GitHub ↗
(data: any, ...paths: string[])

Source from the content-addressed store, hash-verified

49}
50
51export const writeFile = (data: any, ...paths: string[]): Promise<void> => {
52 const filePath = getWorkspacePath(...paths)
53 logger(`Writing file: ${filePath}`)
54 return asyncWriteFile(filePath, data).catch((err) => {
55 logger(`Failed to write to ${filePath}: ${err.message}`)
56 })
57}

Callers 1

writeToSessionFileMethod · 0.90

Calls 2

getWorkspacePathFunction · 0.85
loggerFunction · 0.50

Tested by

no test coverage detected