| 805 | } |
| 806 | |
| 807 | static 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 | |
| 820 | static bool delete_cached_project_db(const char *project_name) { |
| 821 | if (!cbm_validate_project_name(project_name)) { |
no test coverage detected