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

5
LINES

< > BotCompany Repo | #1032375 // usedAndTotalDiskSpace - on home partition

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (166L/2K).

static Pair<Long> usedAndTotalDiskSpace() {
  File f = userDir();
  long total = f.getTotalSpace();
  ret pair(total-f.getUsableSpace(), total);
}

Author comment

Began life as a copy of #1020499

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032375
Snippet name: usedAndTotalDiskSpace - on home partition
Eternal ID of this version: #1032375/1
Text MD5: 019026170e297a6bd6fdd1d71f501164
Transpilation MD5: 4922cfee8c92f4f6f663d60ef324cd4f
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-02 00:39:24
Source code size: 150 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 78 / 118
Referenced in: [show references]