Skip to content

Commit

Permalink
Make sure to track all cache directories
Browse files Browse the repository at this point in the history
  • Loading branch information
james58899 committed Dec 18, 2024
1 parent 7bbf534 commit dc3a4bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cache_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit dc3a4bb

Please sign in to comment.