You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't seem possible to watch or unwatch files from inside the event handler. Something like this:
use hotwatch::{Hotwatch,Event,EventKind};letmut hotwatch = Hotwatch::new().expect("hotwatch failed to initialize!");
hotwatch.watch("war.png", |event:Event| {ifletEventKind::Modify(_) = event.kind{println!("War has changed.");// parse file to get a list of new files to watch
event.unwatch_all();for filepath in files {
event.watch(filepath,|event:Event| {});}}}).expect("failed to watch file!");
Do you plan to implement such a feature soon ?
The text was updated successfully, but these errors were encountered:
It doesn't seem possible to watch or unwatch files from inside the event handler. Something like this:
Do you plan to implement such a feature soon ?
The text was updated successfully, but these errors were encountered: