Uses 911K of libraries. Click here for Pure Java version (3431L/18K).
!7 cprint { transient FileWatchService watchService; start { ownResource(watchService = new FileWatchService); File dir = javaxSecretDir(); watchService.addRecursiveListener(dir, f -> enter { print("File change: " + f); }); print("Watching " + dir); } }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030468 |
Snippet name: | Test FileWatchService (OK) |
Eternal ID of this version: | #1030468/6 |
Text MD5: | 6f8803fd1b1b5f10db1ec12dc07b242e |
Transpilation MD5: | b1152ed0d04aa52b67de4a74eb1d7657 |
Author: | stefan |
Category: | javax / io |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-12-23 01:36:10 |
Source code size: | 302 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 254 / 395 |
Version history: | 5 change(s) |
Referenced in: | [show references] |