1  | static L<File> findMusicFiles() {
 | 
2  | L<File> files;  | 
3  |   loading {
 | 
4  | files = findAllFiles(concatLists((L) findDownloadDirectories(), ll(  | 
5  |       userHome("Music"), userHome("My Documents"),
 | 
6  |       userHome("Eigene Dateien"),
 | 
7  | "/big/stuff",  | 
8  | programDir(#1006739))));  | 
9  | }  | 
10  |   ret filter(files, func(File f) {
 | 
11  | S name = f.getName().toLowerCase();  | 
12  | ret endsWithOneOf(name, ".mp3", ".ogg", ".wav", ".flac"/*, ".m4a"*/);  | 
13  | });  | 
14  | }  | 
Began life as a copy of #1003639
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: | #1003641 | 
| Snippet name: | findMusicFiles | 
| Eternal ID of this version: | #1003641/4 | 
| Text MD5: | b5ac898188c88fe91cc64b018d1c59bc | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-05-25 17:16:16 | 
| Source code size: | 444 bytes / 14 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 928 / 965 | 
| Version history: | 3 change(s) | 
| Referenced in: | [show references] |