-
-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileSystemException: Cannot delete file #184
Comments
@renefloor I actually still get this error. I'm on version
|
I also upgraded and get this issue |
@tamoyal can you create a reproducable example? |
I also upgraded and get this issue |
Baseflow/flutter_cached_network_image#335 #4 CacheStore._removeCachedFile (package:flutter_cache_manager/src/cache_store.dart:190) flutter_cache_manager/flutter_cache_manager/lib/src/cache_store.dart Lines 183 to 186 in 205387b
I see that there is already a judgment on whether the file exists, I don't know why this error still occurs |
Im facing this with:
|
@renefloor friendly reminder 👀 |
avoid crash log Baseflow#184
+1! We're having a similar, if not the same issue - #410 |
How about if (await file.exists()) {
+ try {
await file.delete();
+ } on PathNotFoundException catch (e) {
+ // File has already been deleted. Do nothing #184
+ }
} ? Since the |
Just tested - unfortunately, it didn't fix the issue for me. |
Any chance we will get a new version that has the PR that fixes this merged in? |
🐛 Bug Report
App throws exception
FileSystemException: Cannot delete file
Expected behavior
Should not delete file when it doesn't exist
Reproduction steps
Bug found in: Baseflow/flutter_cached_network_image#335 (comment)
Configuration
Version: 1.3.0
Platform:
The text was updated successfully, but these errors were encountered: