Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1025092 // renderFilesStats [count + total size]

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2268L/14K).

sS renderFilesStats(Cl<File> files) {
  if (empty(files)) ret "no files";
  long size = longSum(map fileSize(files));
  ret nFiles(files) + ", total size: " + str_toK(size);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025092
Snippet name: renderFilesStats [count + total size]
Eternal ID of this version: #1025092/4
Text MD5: 9378283ed7c53c100f78a0f6d4cebe0b
Transpilation MD5: ac927babbf64c3c15afab3e4c2a51768
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-05 14:15:07
Source code size: 179 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 163 / 244
Version history: 3 change(s)
Referenced in: [show references]