MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / createFile

Function createFile

src/pages/fileBrowser/fileBrowser.js:1477–1481  ·  view source on GitHub ↗
(fileUrl)

Source from the content-addressed store, hash-verified

1475 }
1476
1477 function createFile(fileUrl) {
1478 const paths = fileUrl.split("/");
1479 const filename = paths.pop();
1480 return createDir(projectFiles, fileUrl, filename, paths);
1481 }
1482
1483 async function createDir(project, fileUrl, filename, paths) {
1484 const lclUrl = Url.join(projectLocation, ctUrl);

Callers 1

createProjectFunction · 0.70

Calls 1

createDirFunction · 0.70

Tested by

no test coverage detected