MCPcopy Index your code
hub / github.com/cobusgreyling/loop-engineering / readDirNames

Function readDirNames

tools/loop-init/src/cli.ts:571–575  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

569}
570
571async function readDirNames(dir: string): Promise<string[]> {
572 const { readdir } = await import('node:fs/promises');
573 const entries = await readdir(dir, { withFileTypes: true });
574 return entries.filter((e) => e.isDirectory() || e.isFile()).map((e) => e.name);
575}
576
577main().catch((err) => {
578 console.error('loop-init failed:', err instanceof Error ? err.message : err);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected