MCPcopy Create free account
hub / github.com/dyoshikawa/rulesync / writeFileContent

Function writeFileContent

src/utils/file.ts:161–164  ·  view source on GitHub ↗
(filepath: string, content: string)

Source from the content-addressed store, hash-verified

159}
160
161export async function writeFileContent(filepath: string, content: string): Promise<void> {
162 await ensureDir(dirname(filepath));
163 await writeFile(filepath, content, "utf-8");
164}
165
166export async function writeFileBuffer(filepath: string, buffer: Buffer): Promise<void> {
167 await ensureDir(dirname(filepath));

Callers 15

writeAiFilesFunction · 0.85
writeAiDirsFunction · 0.85
writeJsonFileFunction · 0.85
file.test.tsFile · 0.85
writeSettingsFunction · 0.85
fetch.test.tsFile · 0.85
createConfigFileFunction · 0.85
writeIfNotExistsFunction · 0.85

Calls 1

ensureDirFunction · 0.85

Tested by 4

writeSettingsFunction · 0.68
writeManifestFunction · 0.68
importModeFunction · 0.68
writeSkillFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…