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: | 812 / 828 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |