Skip to content

Commit

Permalink
remove all cache contents on clean-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
LGFae committed Feb 13, 2024
1 parent 6df8df0 commit 1eecca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub fn load(output_name: &str) -> Result<(), String> {
}

pub fn clean() -> Result<(), String> {
std::fs::remove_dir(cache_dir()?).map_err(|e| format!("failed to remove cache directory: {e}"))
std::fs::remove_dir_all(cache_dir()?).map_err(|e| format!("failed to remove cache directory: {e}"))
}

fn clean_previous_verions(cache_dir: &Path) {
Expand Down

0 comments on commit 1eecca7

Please sign in to comment.