JAVA 7 watch service
问题 How can I have the watch service process any files that are in the directory on when the application starts up? I already have the application running, but I noticed that only new files that are dropped in the directory are processed but files that were there from the start are ignored. 回答1: I have the same use case here and I am surprised that I did not find much useful online for such common scenario. I see some problems on the below approach. Let's say we utilize the walkTree method to