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

9
LINES

< > BotCompany Repo | #1001723 // allDataDirectories

JavaX fragment (include)

// lists only the non-empty ones
static L<File> allDataDirectories() {
  File dataDir = javaxDataDir();
  new L<File> l;
  for (File dir : listDirs(dataDir))
    if (dir.getName().startsWith("#") && listFiles(dir).length != 0)
      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: #1001723
Snippet name: allDataDirectories
Eternal ID of this version: #1001723/1
Text MD5: 9d4574753a6835c6611308a53b66f024
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-25 21:00:07
Source code size: 263 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 550 / 829
Referenced in: [show references]