MCPcopy Create free account
hub / github.com/GlobalTechInfo/MEGA-MDX / initializeWarningsFile

Function initializeWarningsFile

plugins/warn.ts:15–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13const warningsPath = path.join(databaseDir, 'warnings.json');
14
15function initializeWarningsFile() {
16 if (!HAS_DB) {
17 if (!fs.existsSync(databaseDir)) {
18 fs.mkdirSync(databaseDir, { recursive: true });
19 }
20
21 if (!fs.existsSync(warningsPath)) {
22 fs.writeFileSync(warningsPath, JSON.stringify({}), 'utf8');
23 }
24 }
25}
26
27async function getWarnings() {
28 if (HAS_DB) {

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected