pub fn create_file_watcher<F>( watch_dir: PathBuf, filter: F, ) -> Result<FileWatcher, String>where F: Fn(&Path) -> bool + Send + Sync + 'static,
Convenience function to create a file watcher with closure-based filter