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

10
LINES

< > BotCompany Repo | #1015327 // onNewFileInDirWithExtension

JavaX fragment (include)

1  
static void onNewFileInDirWithExtension(final File dir, S ext, final VF1<File> onNewFile) {
2  
  onNewFileInDirWithExtension(dir, ext, 1.0, onNewFile);
3  
}
4  
5  
static void onNewFileInDirWithExtension(final File dir, fS ext, double interval, final VF1<File> onNewFile) {
6  
  onNewFileInDir(dir, interval, voidfunc(File f) {
7  
    if (fileExtensionIs(f, ext))
8  
      pcallF(onNewFile, f);
9  
  });
10  
}

Author comment

Began life as a copy of #1015314

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: #1015327
Snippet name: onNewFileInDirWithExtension
Eternal ID of this version: #1015327/2
Text MD5: f24a5d49870c7c612f345a76603f60dc
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-12 23:18:10
Source code size: 390 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 284 / 320
Version history: 1 change(s)
Referenced in: [show references]