MCPcopy
hub / github.com/Fission-AI/OpenSpec / writeFile

Method writeFile

src/utils/file-system.ts:230–234  ·  view source on GitHub ↗
(filePath: string, content: string)

Source from the content-addressed store, hash-verified

228 }
229
230 static async writeFile(filePath: string, content: string): Promise<void> {
231 const dir = path.dirname(filePath);
232 await this.createDirectory(dir);
233 await fs.writeFile(filePath, content, 'utf-8');
234 }
235
236 static async readFile(filePath: string): Promise<string> {
237 return await fs.readFile(filePath, 'utf-8');

Calls 1

createDirectoryMethod · 0.95

Tested by 6

createTestChangeFunction · 0.64
writeSkillFunction · 0.64
writeManagedCommandFunction · 0.64
writeUtf16LeFileFunction · 0.64
writeUtf8BomFileFunction · 0.64