mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 16:16:33 +02:00
Debug: cache quota
This commit is contained in:
@@ -2029,16 +2029,16 @@ public class Helper {
|
||||
} catch (IOException ex) {
|
||||
Log.w(ex);
|
||||
}
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static long getSize(File dir) {
|
||||
static long getSizeUsed(File dir) {
|
||||
long size = 0;
|
||||
File[] listed = dir.listFiles();
|
||||
if (listed != null)
|
||||
for (File file : listed)
|
||||
if (file.isDirectory())
|
||||
size += getSize(file);
|
||||
size += getSizeUsed(file);
|
||||
else
|
||||
size += file.length();
|
||||
return size;
|
||||
|
||||
Reference in New Issue
Block a user