Libraryless. Click here for Pure Java version (2966L/18K).
1 | static Map<File, Long> filesWithSize(Iterable<File> files) {
|
2 | new Map<File, Long> map; |
3 | fOr ping (File f : files) {
|
4 | if (isFile(f)) |
5 | map.put(f, fileSize(f)); |
6 | } |
7 | ret mapSortedByValueDesc(map); |
8 | } |
Began life as a copy of #1020814
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031623 |
| Snippet name: | filesWithSize - biggest first |
| Eternal ID of this version: | #1031623/1 |
| Text MD5: | 35532e96a9be8dcd0fa8de4b341e800b |
| Transpilation MD5: | 9b36ef9654e80cc57ed57ce40cf873ae |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-06-22 12:25:22 |
| Source code size: | 213 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 383 / 457 |
| Referenced in: | [show references] |