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

Function removeDir

scripts/unharness.js:109–113  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

107
108 fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2) + '\n');
109 return { removed, preserved };
110}
111
112function removeDir(dir) {
113 if (!fs.existsSync(dir)) return false;
114 fs.rmSync(dir, { recursive: true, force: true });
115 return true;
116}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected