MCPcopy Create free account
hub / github.com/anomalyco/opencode / appendText

Function appendText

packages/tui/src/util/persistence.ts:17–20  ·  view source on GitHub ↗
(filePath: string, content: string)

Source from the content-addressed store, hash-verified

15}
16
17export async function appendText(filePath: string, content: string) {
18 await mkdir(path.dirname(filePath), { recursive: true })
19 await appendFile(filePath, content)
20}
21
22export async function writeJsonAtomic(filePath: string, value: unknown) {
23 await mkdir(path.dirname(filePath), { recursive: true })

Callers 4

updateFrecencyFunction · 0.90
appendFunction · 0.90
pushFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected