static L<File> filesEndingWith(File dir, S suffix) { ret listFilesWithSuffix(dir, suffix); } static L<File> filesEndingWith(L<File> l, S suffix) { new L<File> out; for (File f : unnull(l)) if (!f.isDirectory() && (empty(suffix) || endsWithIgnoreCase(f.getName(), suffix))) out.add(f); ret out; } static L<File> filesEndingWith(S suffix, File dir) { ret filesEndingWith(dir, suffix); }
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: | 470 / 513 |
Version history: | 6 change(s) |
Referenced in: | [show references] |