fix: remove hive file (#2276)

This commit is contained in:
My-Responsitories
2026-06-03 11:59:11 +00:00
committed by GitHub
parent bed533eaeb
commit 3446484d97
8 changed files with 21 additions and 21 deletions

View File

@@ -72,8 +72,10 @@ abstract final class CacheManager {
final tempDirectory = await getTemporaryDirectory();
if (tempDirectory.existsSync()) {
final children = tempDirectory.list(recursive: false);
await for (final file in children) {
await for (final file in tempDirectory.list(recursive: false)) {
if (file is Directory && path.equals(file.path, manager.cacheDir)) {
continue;
}
await file.delete(recursive: true);
}
}