From dc3a4bb3d14c52aad3fb2de6b63ddca6507b623d Mon Sep 17 00:00:00 2001 From: james58899 Date: Tue, 17 Dec 2024 10:20:38 +0000 Subject: [PATCH] Make sure to track all cache directories --- src/cache_manager.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cache_manager.rs b/src/cache_manager.rs index 0f730cd..67946a7 100644 --- a/src/cache_manager.rs +++ b/src/cache_manager.rs @@ -188,7 +188,10 @@ impl CacheManager { error!("Create cache directory fail: {}", err); return; } + } + // Insert cache date if not exist + if !self.cache_date.lock().contains_key(dir) { self.cache_date.lock().insert(dir.to_path_buf(), FileTime::now()); }