8
LINES
JavaX fragment (include)
1 | static File[] listFiles(File dir) {
|
2 | File[] files = dir == null ?: dir.listFiles();
|
3 | return files == null ? new File[0] : files;
|
4 | }
|
5 |
|
6 | static File[] listFiles(S dir) {
|
7 | ret listFiles(new File(dir));
|
8 | } |
download show line numbers debug dex old transpilations
Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
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/3 |
Text MD5: |
78e6dff2176cc2fadfaf2930282eee32 |
Author: |
stefan |
Category: |
javax |
Type: |
JavaX fragment (include) |
Public (visible to everyone): |
Yes |
Archived (hidden from active list): |
No |
Created/modified: |
2022-12-11 22:49:13 |
Source code size: |
207 bytes / 8 lines |
Pitched / IR pitched: |
No / No |
Views / Downloads: |
1039 / 1436 |
Version history: |
2 change(s) |
Referenced in: |
[show references] |