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

8
LINES

< > BotCompany Repo | #1001459 - listFiles (plus dirs, doesn't recurse)

JavaX fragment (include)

static File[] listFiles(File dir) {
  File[] files = dir.listFiles();
  return files == null ? new File[0] : files;
}

static File[] listFiles(S dir) {
  ret listFiles(new File(dir));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

Comments [hide]

ID Author/Program Comment Date
1129 stefan Actually lists files and directories, just like File.listFiles() 2015-10-16 20:58:25

add comment

Snippet ID: #1001459
Snippet name: listFiles (plus dirs, doesn't recurse)
Eternal ID of this version: #1001459/2
Text MD5: 23eab5b45f1b949fb8ec9ae701a470b2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-23 16:47:50
Source code size: 192 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 683 / 1026
Version history: 1 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1001459 & http://1001459.tinybrain.de