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

Function ensureDir

scripts/codex-compat.js:40–44  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

38const DRY_RUN = args.includes('--dry-run');
39const PROJECT_ROOT = args.find(a => !a.startsWith('--')) || process.env.CLAUDE_PROJECT_DIR || process.cwd();
40const CODEX_PLUGIN_HOOKS_PATH = './runtimes/codex/hooks.json';
41
42// ---- Utility helpers --------------------------------------------------------
43
44function ensureDir(dir) {
45 if (!DRY_RUN && !fs.existsSync(dir)) {
46 fs.mkdirSync(dir, { recursive: true });
47 }

Callers 1

writeFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected