// 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: | 652 / 932 |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1003687 - allDataDirs - lists also the empty ones (faster) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1015086 - programsWithData #3000382 - Answer for ferdie (>> t = 1, f = 0) |