Libraryless. Click here for Pure Java version (166L/2K).
1 | static Pair<Long> usedAndTotalDiskSpace() { |
2 | File f = userDir(); |
3 | long total = f.getTotalSpace(); |
4 | ret pair(total-f.getUsableSpace(), total); |
5 | } |
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: | 192 / 267 |
Referenced in: | [show references] |