Skip to main content

create_file_watcher

Function create_file_watcher 

Source
pub fn create_file_watcher<F>(
    watch_dir: PathBuf,
    filter: F,
) -> Result<FileWatcher, String>
where F: Fn(&Path) -> bool + Send + Sync + 'static,
Expand description

Convenience function to create a file watcher with closure-based filter