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

10
LINES

< > BotCompany Repo | #1015327 // onNewFileInDirWithExtension

JavaX fragment (include)

static void onNewFileInDirWithExtension(final File dir, S ext, final VF1<File> onNewFile) {
  onNewFileInDirWithExtension(dir, ext, 1.0, onNewFile);
}

static void onNewFileInDirWithExtension(final File dir, fS ext, double interval, final VF1<File> onNewFile) {
  onNewFileInDir(dir, interval, voidfunc(File f) {
    if (fileExtensionIs(f, ext))
      pcallF(onNewFile, f);
  });
}

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: 283 / 319
Version history: 1 change(s)
Referenced in: [show references]