MCPcopy Create free account
hub / github.com/BabylonJS/BabylonReactNative / copyRecursiveExcludingGit

Function copyRecursiveExcludingGit

Package/gulpfile.js:312–330  ·  view source on GitHub ↗
(src, dest)

Source from the content-addressed store, hash-verified

310}
311
312function copyRecursiveExcludingGit(src, dest) {
313 if (!fs.existsSync(src)) return;
314
315 fs.mkdirSync(dest, { recursive: true });
316 const entries = fs.readdirSync(src, { withFileTypes: true });
317
318 for (const entry of entries) {
319 if (entry.name === '.git') continue;
320
321 const srcPath = path.join(src, entry.name);
322 const destPath = path.join(dest, entry.name);
323
324 if (entry.isDirectory()) {
325 copyRecursiveExcludingGit(srcPath, destPath);
326 } else {
327 fs.copyFileSync(srcPath, destPath);
328 }
329 }
330}
331
332function copyDepsFolders() {
333 const depsSrc = path.join(TEMP_BUILD_DIR, '_deps');

Callers 1

copyDepsFoldersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected