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

12
LINES

< > BotCompany Repo | #1003187 // existingDirectoriesOnly - filter list of possible directories

JavaX fragment (include)

static L<File> existingDirectoriesOnly(File... dirs) {
  ret existingDirectoriesOnly(asList(dirs));
}

static L<File> existingDirectoriesOnly(L<File> dirs) {
  new L<File> l;
  if (dirs != null)
    for (File dir : dirs)
      if (dir.isDirectory())
        l.add(dir);
  ret l;
}

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: #1003187
Snippet name: existingDirectoriesOnly - filter list of possible directories
Eternal ID of this version: #1003187/1
Text MD5: 6ee313f04241bc889de741cf8348b9ed
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-05-25 16:44:13
Source code size: 291 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 525 / 531
Referenced in: [show references]