MCPcopy Create free account
hub / github.com/anus-dev/ANUS / createFile

Function createFile

packages/core/src/tools/read-many-files.test.ts:196–200  ·  view source on GitHub ↗
(filePath: string, content = '')

Source from the content-addressed store, hash-verified

194
195 describe('execute', () => {
196 const createFile = (filePath: string, content = '') => {
197 const fullPath = path.join(tempRootDir, filePath);
198 fs.mkdirSync(path.dirname(fullPath), { recursive: true });
199 fs.writeFileSync(fullPath, content);
200 };
201 const createBinaryFile = (filePath: string, data: Uint8Array) => {
202 const fullPath = path.join(tempRootDir, filePath);
203 fs.mkdirSync(path.dirname(fullPath), { recursive: true });

Callers 2

createMultipleFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected