Skip to main content

save_caches

Function save_caches 

Source
pub fn save_caches(prepared: &PreparedCaches) -> Result<(), CachePathError>
Expand description

Copy each worktree cache directory back to the shared slot.

Called after the check, success or failure. A missing worktree path is a no-op. A failed save is an error so the only copy is not dropped silently. The worktree directory stays hot for later checks in this run.