1 | static L<File> findVideoFiles() { |
2 | L<File> files; |
3 | loading { |
4 | files = findAllFiles(concatLists((L) findDownloadDirectories(), ll(userHome("Videos"), userHome("My Documents"), userHome("My Videos"), "/big/Downloads", "/big/."))); |
5 | } |
6 | ret filter(files, func(File f) { |
7 | S name = f.getName().toLowerCase(); |
8 | ret endsWithOneOf(name, ".mp4", ".avi", ".flv", ".mkv"); |
9 | }); |
10 | } |
Began life as a copy of #1003641
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003760 |
Snippet name: | findVideoFiles |
Eternal ID of this version: | #1003760/1 |
Text MD5: | 89003d279451cb660ec9c90a5dd17294 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-07-26 22:14:47 |
Source code size: | 390 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 550 / 546 |
Referenced in: | [show references] |