MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / collectSourceDir

Function collectSourceDir

dashboard/build.shared.mjs:427–442  ·  view source on GitHub ↗
(dir, out)

Source from the content-addressed store, hash-verified

425}
426
427async function collectSourceDir(dir, out) {
428 let entries;
429 try {
430 entries = await fs.readdir(path.join(dashboardRoot, dir), { withFileTypes: true });
431 } catch {
432 return;
433 }
434 for (const entry of entries) {
435 const relative = path.join(dir, entry.name);
436 if (entry.isDirectory()) {
437 await collectSourceDir(relative, out);
438 } else if (entry.isFile()) {
439 out.push(relative);
440 }
441 }
442}
443
444async function collectDashboardSourceInputs() {
445 const inputs = [];

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected