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

Function watcher_unlink_cached_file

src/watcher/watcher.c:807–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805}
806
807static bool watcher_unlink_cached_file(const char *project_name, const char *path,
808 const char *artifact) {
809 if (cbm_unlink(path) == 0 || errno == ENOENT) {
810 return true;
811 }
812 int unlink_errno = errno;
813 char errno_text[CBM_SZ_32];
814 snprintf(errno_text, sizeof(errno_text), "%d", unlink_errno);
815 cbm_log_warn("watcher.root_prune_delete_failed", "project", project_name, "artifact", artifact,
816 "path", path, "errno", errno_text);
817 return false;
818}
819
820static bool delete_cached_project_db(const char *project_name) {
821 if (!cbm_validate_project_name(project_name)) {

Callers 1

delete_cached_project_dbFunction · 0.85

Calls 1

cbm_unlinkFunction · 0.85

Tested by

no test coverage detected