1 | static L<File> filesEndingWith(File dir, S suffix) { |
2 | ret listFilesWithSuffix(dir, suffix); |
3 | } |
4 | |
5 | static L<File> filesEndingWith(L<File> l, S suffix) { |
6 | new L<File> out; |
7 | for (File f : unnull(l)) |
8 | if (!f.isDirectory() && (empty(suffix) || endsWithIgnoreCase(f.getName(), suffix))) |
9 | out.add(f); |
10 | ret out; |
11 | } |
12 | |
13 | static L<File> filesEndingWith(S suffix, File dir) { |
14 | ret filesEndingWith(dir, suffix); |
15 | } |
Began life as a copy of #1002088
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1010710 |
Snippet name: | filesEndingWith - ignores case |
Eternal ID of this version: | #1010710/7 |
Text MD5: | 31c4de9c0d31e6acdd8293defae1aed8 |
Author: | stefan |
Category: | javax / io |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-02-04 09:28:05 |
Source code size: | 420 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 472 / 516 |
Version history: | 6 change(s) |
Referenced in: | [show references] |