mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-04 10:04:48 +08:00
fix: remove hive file (#2276)
This commit is contained in:
committed by
GitHub
parent
bed533eaeb
commit
3446484d97
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user