1 | please include function jdk_watchService_start. |
2 | |
3 | svoid jdk_watchService_registerRecursivePath(File path, final VF1<File> listener) ctex {
|
4 | final Set<File> listeningTo = synchroSet(); |
5 | VF1<File> listener2 = voidfunc(File f) {
|
6 | // TODO: remove listeners on deleted directory |
7 | bool isDir = f.isDirectory(); |
8 | if (isDir && listeningTo.add(f)) pcall-short {
|
9 | //print("Watching new subdir: " + f);
|
10 | jdk_watchService_registerPath(f, this, jdk_watchService_allEventKinds()); |
11 | } |
12 | callF(listener, f); |
13 | }; |
14 | jdk_watchService_registerPath(path, listener2, jdk_watchService_allEventKinds()); |
15 | for (File subDir : findAllDirs(path)) |
16 | jdk_watchService_registerPath(subDir, listener2, jdk_watchService_allEventKinds()); |
17 | } |
Began life as a copy of #1019345
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: | #1019348 |
| Snippet name: | jdk_watchService_registerRecursivePath |
| Eternal ID of this version: | #1019348/8 |
| Text MD5: | d5ed15dc268f0cb3e8494aac2b408238 |
| Author: | stefan |
| Category: | javax / io |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-11-03 13:22:33 |
| Source code size: | 751 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 592 / 636 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |