MCPcopy
hub / github.com/nashsu/llm_wiki / writeFileRaw

Function writeFileRaw

src/test-helpers/fs-temp.ts:118–121  ·  view source on GitHub ↗
(p: string, contents: string)

Source from the content-addressed store, hash-verified

116
117/** Write a file directly (bypasses the mocked API) — used in fixture setup. */
118export async function writeFileRaw(p: string, contents: string): Promise<void> {
119 await fs.mkdir(path.dirname(p), { recursive: true })
120 await fs.writeFile(p, contents, "utf-8")
121}
122
123/** Check if a file exists on disk. */
124export async function fileExists(p: string): Promise<boolean> {

Calls

no outgoing calls

Tested by

no test coverage detected