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

Function exists

scripts/operating-proof.js:55–61  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

53}
54
55function exists(filePath) {
56 try {
57 return fs.existsSync(filePath);
58 } catch {
59 return false;
60 }
61}
62
63function listExisting(projectRoot, relativePaths) {
64 return relativePaths.filter((relativePath) => exists(path.join(projectRoot, relativePath)));

Callers 1

listExistingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected