Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1003641 // findMusicFiles

JavaX fragment (include)

static L<File> findMusicFiles() {
  L<File> files;
  loading {
    files = findAllFiles(concatLists((L) findDownloadDirectories(), ll(
      userHome("Music"), userHome("My Documents"),
      userHome("Eigene Dateien"),
      "/big/stuff",
      programDir(#1006739))));
  }
  ret filter(files, func(File f) {
    S name = f.getName().toLowerCase();
    ret endsWithOneOf(name, ".mp3", ".ogg", ".wav", ".flac"/*, ".m4a"*/);
  });
}

Author comment

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: 662 / 696
Version history: 3 change(s)
Referenced in: [show references]