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

11
LINES

< > BotCompany Repo | #1019346 // Non-Recursive File Watch Service Spike [OK]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (14828L/102K).

!7

module FileWatchServiceSpike > DynPrintLog {
  start {
    WatchService watchService = jdk_watchService_start();
    jdk_watchService_registerPath(javaxDataDir(), voidfunc(File f) {
      print("CHANGE: " + f)
    }, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY, OVERFLOW);
    print("Listening to changes in " + javaxDataDir());
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019346
Snippet name: Non-Recursive File Watch Service Spike [OK]
Eternal ID of this version: #1019346/3
Text MD5: 70a89947a71abe403c1801bb7857edf2
Transpilation MD5: 803050727c21ace0561202a735369335
Author: stefan
Category: javax / io
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-07 21:55:44
Source code size: 345 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 301 / 432
Version history: 2 change(s)
Referenced in: [show references]