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

3
LINES

< > BotCompany Repo | #1023322 // countFilesInDir - doesn't recurse, counts files and dirs

JavaX fragment (include)

static int countFilesInDir(File dir) {
  ret l(listFiles(dir));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1023322
Snippet name: countFilesInDir - doesn't recurse, counts files and dirs
Eternal ID of this version: #1023322/2
Text MD5: 858740f96201d6de147bffa736943a7f
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-20 12:26:49
Source code size: 67 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 188 / 220
Version history: 1 change(s)
Referenced in: [show references]