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

Function listFiles

scripts/telemetry-stats.js:45–48  ·  view source on GitHub ↗
(dir, ext)

Source from the content-addressed store, hash-verified

43}
44
45function listFiles(dir, ext) {
46 if (!fs.existsSync(dir)) return [];
47 return fs.readdirSync(dir).filter(f => !ext || f.endsWith(ext));
48}
49
50function todayPrefix() {
51 return new Date().toISOString().slice(0, 10);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected