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

7
LINES

< > BotCompany Repo | #1007493 // fileNamePlusMSize

JavaX fragment (include)

static S fileNamePlusMSize(File f) {
  if (f == null) ret "-";
  S s = f2s(f) + " ";
  if (f.isDirectory()) ret s + "(dir)";
  if (!f.exists()) ret s + "(-)";
  ret s + "(" + toM(f.length(), 1) + " MB)";
}

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

Snippet ID: #1007493
Snippet name: fileNamePlusMSize
Eternal ID of this version: #1007493/3
Text MD5: e498e214851e5c13a5df94edd03382e9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-25 14:52:33
Source code size: 211 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 580 / 587
Version history: 2 change(s)
Referenced in: [show references]