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

10
LINES

< > BotCompany Repo | #1003760 // findVideoFiles

JavaX fragment (include)

static L<File> findVideoFiles() {
  L<File> files;
  loading {
    files = findAllFiles(concatLists((L) findDownloadDirectories(), ll(userHome("Videos"), userHome("My Documents"), userHome("My Videos"), "/big/Downloads", "/big/.")));
  }
  ret filter(files, func(File f) {
    S name = f.getName().toLowerCase();
    ret endsWithOneOf(name, ".mp4", ".avi", ".flv", ".mkv");
  });
}

Author comment

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: 551 / 546
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)