Skip to content

Commit fbfd4f2

Browse files
committed
Disable following symlinks in the watcher
1 parent d12735a commit fbfd4f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/watch.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ fn run_watch(
7474

7575
let mut watcher = RecommendedWatcher::new(
7676
notify_event_handler,
77-
Config::default().with_poll_interval(Duration::from_secs(1)),
77+
Config::default()
78+
.with_follow_symlinks(false)
79+
.with_poll_interval(Duration::from_secs(1)),
7880
)
7981
.inspect_err(|_| eprintln!("{NOTIFY_ERR}"))?;
8082

0 commit comments

Comments
 (0)