diff --git a/src/main.rs b/src/main.rs index d7b14c5..7107908 100644 --- a/src/main.rs +++ b/src/main.rs @@ -88,7 +88,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() { + if let Some(id) = cache_dir.file_name().to_str() && id.starts_with("haze-") { if !retain.iter().any(|cloud| cloud.id == id) { let path = cache_dir.path(); // By default, the worktrees live within the work dir, we do not want to delete it here.