This is my filewatcher code:


Path myDir = Paths.get("D:/data");

try {
System.out.println(" task started:"+new Date());
WatchService watcher =...