title: FileSystemWatcher in Java - Deleting a directory being watched
body: <p>I have implemented a file system watcher. Whenever I try to delete watched directory, it generates <code>ENTRY_MODIFY</code> events for all the files or sub directories inside that directory. Is there any way to find that there was delete command for the watched directory? I do not want to watch the parent directory because in this way all the other files and folders will also be watched for changes.</p>