MCPcopy Create free account
hub / github.com/M66B/FairEmail / getSizeUsed

Method getSizeUsed

app/src/main/java/eu/faircode/email/Helper.java:3194–3204  ·  view source on GitHub ↗
(File dir)

Source from the content-addressed store, hash-verified

3192 }
3193
3194 static long getSizeUsed(File dir) {
3195 long size = 0;
3196 File[] listed = dir.listFiles();
3197 if (listed != null)
3198 for (File file : listed)
3199 if (file.isDirectory())
3200 size += getSizeUsed(file);
3201 else
3202 size += file.length();
3203 return size;
3204 }
3205
3206 static void openAdvanced(Context context, Intent intent) {
3207 // https://issuetracker.google.com/issues/72053350

Callers 2

onExecuteMethod · 0.95
getAppInfoMethod · 0.95

Calls 3

listFilesMethod · 0.80
isDirectoryMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected