Libraryless. Click here for Pure Java version (2698L/18K/59K).
!752 static int minSizeToShow = 100*1024; // 0.1 MB answer { if "program data sizes" { L<File> dirs = allDataDirectories(); new Map<S, Long> map; long total = 0, totalCount = 0; for (File dir : dirs) { long count = numberOfFiles(dir); long size = directorySize(dir); total += size; totalCount += count; S id = dir.getName(); if (size >= minSizeToShow) map.put(id + ": " + formatDouble(toM_double(size), 1) + " MB (" + n(count, "file") + ") - " + getSnippetTitle_overBot(id), size); } ret slackSnippet( "Total files: " + totalCount + ", total size: " + formatDouble(toM_double(total), 1) + " MB, showing all programs above " + (minSizeToShow/1024) + " K\n" + fromLines(reversedList(keysSortedByValues(map)))); } }
Began life as a copy of #1002039
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment