MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / appendToFile

Function appendToFile

source code/services/api/dumpPrompts.ts:69–74  ·  view source on GitHub ↗
(filePath: string, entries: string[])

Source from the content-addressed store, hash-verified

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

Callers 1

dumpRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected