MCPcopy Index your code
hub / github.com/CopilotKit/CopilotKit / listFilesRec

Function listFilesRec

scripts/sync-plugin-skills.ts:74–83  ·  view source on GitHub ↗
(dir: string, base = dir)

Source from the content-addressed store, hash-verified

72}
73
74async function listFilesRec(dir: string, base = dir): Promise<string[]> {
75 const out: string[] = [];
76 const entries = await readdir(dir, { withFileTypes: true });
77 for (const e of entries) {
78 const full = join(dir, e.name);
79 if (e.isDirectory()) out.push(...(await listFilesRec(full, base)));
80 else if (e.isFile()) out.push(relative(base, full));
81 }
82 return out;
83}
84
85// ─── Main ────────────────────────────────────────────────────────────────────
86

Callers 1

syncPluginSkillsFunction · 0.85

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…