From 9cc6f785402520216a87fc22ff46e6209bf90a88 Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Sat, 8 Aug 2026 20:56:43 +0200 Subject: [PATCH] fix(clean): Keep `haze-` prefix when comparing id The cloud id has the prefix, so removing it breaks the comparison Signed-off-by: Louis Chmn --- src/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index d999b7c..9c14ab1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -82,11 +82,7 @@ async fn main() -> Result { for cache_dir in config.work_dir.read_dir().into_diagnostic()? { let cache_dir = cache_dir.into_diagnostic()?; - if let Some(id) = cache_dir - .file_name() - .to_str() - .and_then(|name| name.strip_prefix("haze-")) - { + if let Some(id) = cache_dir.file_name().to_str() { if !retain.iter().any(|cloud| cloud.id == id) { let path = cache_dir.path(); remove_dir_all(&path).into_diagnostic().wrap_err_with(|| {