MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_remove_old_monolithic_skill

Function cbm_remove_old_monolithic_skill

src/cli/cli.c:701–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701bool cbm_remove_old_monolithic_skill(const char *skills_dir, bool dry_run) {
702 if (!skills_dir) {
703 return false;
704 }
705
706 char old_path[CLI_BUF_1K];
707 snprintf(old_path, sizeof(old_path), "%s/codebase-memory-mcp", skills_dir);
708 struct stat st;
709 if (stat(old_path, &st) != 0 || !S_ISDIR(st.st_mode)) {
710 return false;
711 }
712
713 if (dry_run) {
714 return true;
715 }
716 return rmdir_recursive(old_path) == 0;
717}
718
719/* ── JSON config helpers (using yyjson) ───────────────────────── */
720

Callers 2

test_cli.cFile · 0.85

Calls 2

rmdir_recursiveFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected