1 | static L<File> deleteAllFilesWithSuffix(File dir, S suffix) { |
2 | new L<File> deleted; |
3 | for (File f : listFiles(dir)) |
4 | if (!f.isDirectory() && endsWithIgnoreCase(f.getName(), suffix)) { |
5 | f.delete(); |
6 | deleted.add(f); |
7 | } |
8 | ret deleted; |
9 | } |
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: | #1002085 |
Snippet name: | deleteAllFilesWithSuffix |
Eternal ID of this version: | #1002085/1 |
Text MD5: | 1203762604c4a6985da8da5db66788d4 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-11-28 14:44:18 |
Source code size: | 258 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 734 / 974 |
Referenced in: | [show references] |