Function simple_fs::watch

source ·
pub fn watch(path: impl AsRef<Path>) -> Result<SWatcher>
Expand description

Simplified watcher that monitors a path (file or directory) and returns a SWatcher object with a standard mpsc Receiver for a Vec<SEvent>. Each SEvent contains one spath and one simplified even kind (‘SEventKind’). This will ignore any path that can’t to_str (i.e., only trigger events if valid utf8 path)