MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / writeFile

Function writeFile

src/commands/agent.ts:62–64  ·  view source on GitHub ↗
(p: string, data: string, opts?: { exclusive?: boolean })

Source from the content-addressed store, hash-verified

60 return fs.readFile(p, 'utf8');
61 },
62 async writeFile(p: string, data: string, opts?: { exclusive?: boolean }): Promise<void> {
63 await fs.writeFile(p, data, { encoding: 'utf8', flag: opts?.exclusive ? 'wx' : 'w' });
64 },
65 async mkdir(p: string): Promise<void> {
66 await fs.mkdir(p, { recursive: true });
67 },

Callers 5

writeBundleFunction · 0.50
writeStepArtifactsFunction · 0.50
streamUrlToFileFunction · 0.50
writePartialMarkerFunction · 0.50

Calls 1

writeFileMethod · 0.80

Tested by

no test coverage detected