1 | static S fileNamePlusMSize(File f) { |
2 | if (f == null) ret "-"; |
3 | S s = f2s(f) + " "; |
4 | if (f.isDirectory()) ret s + "(dir)"; |
5 | if (!f.exists()) ret s + "(-)"; |
6 | ret s + "(" + toM(f.length(), 1) + " MB)"; |
7 | } |
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: | 581 / 588 |
Version history: | 2 change(s) |
Referenced in: | [show references] |