Disable following symlinks in the watcher

This commit is contained in:
mo8it 2025-01-16 10:41:48 +01:00
parent d12735a573
commit fbfd4f25e7

View file

@ -74,7 +74,9 @@ fn run_watch(
let mut watcher = RecommendedWatcher::new( let mut watcher = RecommendedWatcher::new(
notify_event_handler, notify_event_handler,
Config::default().with_poll_interval(Duration::from_secs(1)), Config::default()
.with_follow_symlinks(false)
.with_poll_interval(Duration::from_secs(1)),
) )
.inspect_err(|_| eprintln!("{NOTIFY_ERR}"))?; .inspect_err(|_| eprintln!("{NOTIFY_ERR}"))?;