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

Function createProject

src/pages/fileBrowser/fileBrowser.js:1465–1475  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

1463 }
1464
1465 async function createProject(files) {
1466 // checking if it's the last file
1467 if (!files.length) {
1468 reload();
1469 return;
1470 }
1471 ctUrl = "";
1472 const file = files.pop();
1473 await createFile(file);
1474 return await createProject(files);
1475 }
1476
1477 function createFile(fileUrl) {
1478 const paths = fileUrl.split("/");

Callers 1

createFunction · 0.85

Calls 2

reloadFunction · 0.70
createFileFunction · 0.70

Tested by

no test coverage detected