Add an option to change cache size and clear the cache

This commit is contained in:
inorichi
2015-12-07 15:53:01 +01:00
parent 4aee1ca8a3
commit 8f7443a686
22 changed files with 331 additions and 158 deletions
@@ -158,5 +158,18 @@ public final class DiskUtils {
}
}
public static long getDirectorySize(File f) {
long size = 0;
if (f.isDirectory()) {
for (File file : f.listFiles()) {
size += getDirectorySize(file);
}
} else {
size=f.length();
}
return size;
}
}