MCPcopy Create free account
hub / github.com/SethGammon/Citadel / listFiles

Function listFiles

scripts/dashboard.js:81–90  ·  view source on GitHub ↗
(dir, predicate = () => true)

Source from the content-addressed store, hash-verified

79 }
80}
81
82function listFiles(dir, predicate = () => true) {
83 try {
84 if (!fs.existsSync(dir)) return [];
85 return fs.readdirSync(dir)
86 .filter((entry) => predicate(entry))
87 .map((entry) => path.join(dir, entry));
88 } catch {
89 return [];
90 }
91}
92
93function tailJsonl(filePath, limit) {

Callers 4

readCampaignsFunction · 0.70
readOutcomeLedgerFunction · 0.70
readFleetSessionsFunction · 0.70
countPendingIntakeItemsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected