Skip to content

Commit

Permalink
Disable following symlinks in the watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
mo8it committed Jan 16, 2025
1 parent d12735a commit fbfd4f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ fn run_watch(

let mut watcher = RecommendedWatcher::new(
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}"))?;

Expand Down

0 comments on commit fbfd4f2

Please sign in to comment.