MCPcopy
hub / github.com/PatrickJS/awesome-cursorrules / write

Function write

scripts/convert-readme-links.test.mjs:17–21  ·  view source on GitHub ↗
(root, filePath, content)

Source from the content-addressed store, hash-verified

15}
16
17function write(root, filePath, content) {
18 const fullPath = join(root, filePath);
19 mkdirSync(dirname(fullPath), { recursive: true });
20 writeFileSync(fullPath, content);
21}
22
23function read(root, filePath) {
24 return readFileSync(join(root, filePath), "utf8");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected