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

4
LINES

< > BotCompany Repo | #1020499 // usedDiskSpace - on home partition

JavaX fragment (include)

static long usedDiskSpace() {
  File f = userDir();
  ret f.getTotalSpace()-f.getUsableSpace();
}

Author comment

Began life as a copy of #1016859

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020499
Snippet name: usedDiskSpace - on home partition
Eternal ID of this version: #1020499/2
Text MD5: 4c6ca080bc525a550a1ee2b0ee019417
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-25 15:01:04
Source code size: 100 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 306 / 320
Version history: 1 change(s)
Referenced in: [show references]