| 1026 | } |
| 1027 | |
| 1028 | static 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 | |
| 1041 | static bool delete_cached_project_db(const char *project_name) { |
| 1042 | if (!cbm_validate_project_name(project_name)) { |
no test coverage detected