-
-
Notifications
You must be signed in to change notification settings - Fork 452
How to get cache size in folder cache #83
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
Comments
My solution: String cacheSize = '0 MB';
final directory = Directory(await DefaultCacheManager().getFilePath());
if (directory.existsSync()) {
FileStat fileStat = directory.statSync();
cacheSize = '${(fileStat.size / 1024.0).toStringAsFixed(2)} MB';
}
print(cacheSize); |
@lijy91 gracias !! |
Closed
|
@DSPerson This method was withdrawn by decision of the author, for more information you can see it here !! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to know the size of the cache folder. There is some method that debits the size of that folder.
The text was updated successfully, but these errors were encountered: