MCPcopy Create free account
hub / github.com/Crain99/cc-reverse / writeProjectDescriptor

Function writeProjectDescriptor

src/core/cocos3x/engine3x.js:814–826  ·  view source on GitHub ↗
(outputPath)

Source from the content-addressed store, hash-verified

812 if (fs.existsSync(src)) {
813 await mkdir(bootOut, { recursive: true });
814 await copyFile(src, path.join(bootOut, name));
815 }
816 }
817 const cocosDir = path.join(sourcePath, 'cocos');
818 if (fs.existsSync(cocosDir)) {
819 const cocosOut = path.join(bootOut, 'cocos');
820 await mkdir(cocosOut, { recursive: true });
821 const cocosEntries = await readdir(cocosDir, { withFileTypes: true });
822 await forEachPool(
823 cocosEntries.filter((e) => e.isFile()),
824 concurrency,
825 async (e) => {
826 await copyFile(path.join(cocosDir, e.name), path.join(cocosOut, e.name));
827 },
828 );
829 }

Callers 1

reverseProject3xFunction · 0.85

Calls 1

writeFileFunction · 0.50

Tested by

no test coverage detected