1 | static L<File> findAllDirs(File dir) { |
2 | new L<File> out; |
3 | findAllDirs(dir, out); |
4 | ret out; |
5 | } |
6 | |
7 | svoid findAllDirs(File dir, L<File> out) { |
8 | out.add(dir); |
9 | pcall-short { |
10 | for (File f : listFiles(dir)) |
11 | if (f.isDirectory()) |
12 | findAllDirs(f, out); |
13 | } |
14 | } |
Began life as a copy of #1019094
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019350 |
Snippet name: | findAllDirs (recurses) |
Eternal ID of this version: | #1019350/5 |
Text MD5: | 3632f41df48941e400fad64efc7f689e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-11-03 13:09:12 |
Source code size: | 280 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 343 / 379 |
Version history: | 4 change(s) |
Referenced in: | [show references] |