mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-25 11:50:16 +08:00
fix: remove hive file (#2276)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user