add a directory to be watched @param dir the directory to watch @param expression the glob pattern to search under the watched directory
add a specific file to the watch list @param file the file to watch
wait for the filewatcher to finish
kill the filewatcher thread
[Validate]