We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08e671d commit 91ca805Copy full SHA for 91ca805
flutter_cache_manager/lib/src/cache_store.dart
@@ -1,4 +1,5 @@
1
import 'dart:async';
2
+import 'dart:io';
3
4
import 'package:flutter_cache_manager/flutter_cache_manager.dart';
5
import 'dart:io' as io;
@@ -185,7 +186,12 @@ class CacheStore {
185
186
final file = io.File(cacheObject.relativePath);
187
188
if (file.existsSync()) {
- await file.delete();
189
+ try {
190
+ await file.delete();
191
+ // ignore: unused_catch_clause
192
+ } on PathNotFoundException catch (e) {
193
+ // File has already been deleted. Do nothing #184
194
+ }
195
}
196
197
0 commit comments