-
-
Notifications
You must be signed in to change notification settings - Fork 426
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
CacheManager saves files with the same path #397
Comments
i have tried but not useful @nikitahummus |
I also moved the creation of Uuid() to the final variable and use the same object inside CacheObject when creating the path of it. it helped @zhancheng |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
馃悰 Bug Report
Scheduled file cleanup on CachedNetworkImage throws
FileSystemException: Cannot delete file
. IssueAfter research, it turned out that different images are recorded along the same path. This happens because relativePath encoding uses Uuid().v1() , which uses DateTime.now() , which causes our error when loading a lot of files at the same time.
To solve this problem, changing the path encoding in flutter_cache_manager-3.3.0/lib/src/cache_manager.dart
putFile
andputFileStream
should help. for example, change v1 to v4, which uses a more random encodingThe text was updated successfully, but these errors were encountered: