fix: remove hive file (#2276)

This commit is contained in:
My-Responsitories
2026-06-03 11:59:11 +00:00
committed by dom
parent 570ea29b3f
commit 48b7ca4945
8 changed files with 21 additions and 25 deletions

View File

@@ -60,8 +60,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);
}
}