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

6
LINES

< > BotCompany Repo | #1001727 // directorySize (pure data size, recursively)

JavaX fragment (include)

1  
static long directorySize(File dir) {
2  
  long n = 0;
3  
  for (File f : findAllFiles_noDirs(dir))
4  
    n += f.length();
5  
  ret n;
6  
}

Author comment

Began life as a copy of #1001726

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: #1001727
Snippet name: directorySize (pure data size, recursively)
Eternal ID of this version: #1001727/1
Text MD5: 236372f7e3be7a32ab326e8002075c09
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-28 15:55:58
Source code size: 130 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 683 / 945
Referenced in: [show references]