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

Function watcher_unlink_cached_file

src/watcher/watcher.c:1028–1039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1026}
1027
1028static bool watcher_unlink_cached_file(const char *project_name, const char *path,
1029 const char *artifact) {
1030 if (cbm_unlink(path) == 0 || errno == ENOENT) {
1031 return true;
1032 }
1033 int unlink_errno = errno;
1034 char errno_text[CBM_SZ_32];
1035 snprintf(errno_text, sizeof(errno_text), "%d", unlink_errno);
1036 cbm_log_warn("watcher.root_prune_delete_failed", "project", project_name, "artifact", artifact,
1037 "path", path, "errno", errno_text);
1038 return false;
1039}
1040
1041static bool delete_cached_project_db(const char *project_name) {
1042 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