MCPcopy Create free account
hub / github.com/oboard/claude-code-rev / appendToFile

Function appendToFile

src/services/api/dumpPrompts.ts:67–72  ·  view source on GitHub ↗
(filePath: string, entries: string[])

Source from the content-addressed store, hash-verified

65}
66
67function appendToFile(filePath: string, entries: string[]): void {
68 if (entries.length === 0) return
69 fs.mkdir(dirname(filePath), { recursive: true })
70 .then(() => fs.appendFile(filePath, entries.join('\n') + '\n'))
71 .catch(() => {})
72}
73
74function initFingerprint(req: Record<string, unknown>): string {
75 const tools = req.tools as Array<{ name?: string }> | undefined

Callers 1

dumpRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected