1 | // in percent |
2 | static double userDirDriveFullness() {
|
3 | File f = userDir(); |
4 | long total = f.getTotalSpace(); |
5 | ret (total-f.getUsableSpace())*100.0/total; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
| Snippet ID: | #1007641 |
| Snippet name: | userDirDriveFullness |
| Eternal ID of this version: | #1007641/3 |
| Text MD5: | 014e13997cd5010131ebc35f79f3149d |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-03-30 13:51:08 |
| Source code size: | 161 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 745 / 767 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |