notify-rs / notify

🔭 Cross-platform filesystem notification library for Rust.
https://docs.rs/notify
2.77k stars 222 forks source link

Q. How to ignore tracking some folders/files inside tracked folder? #598

Closed Ashu999 closed 5 months ago

Ashu999 commented 6 months ago

example:

TrackedFolder
      .Folder1
      Folder2
      File1.ext
      File2.ext

Let's say I have watcher enabled on TrackedFolder. I want to exclude .Folder1 from getting tracked. How to achieve it?

bicarlsen commented 5 months ago

From my delve into the crate, this isn't currently possible. It is left to the client application to filter based on the Event's paths.

(e.g. code ref)

0xpr03 commented 5 months ago

There is no filtering in notify right now. I recommend making this a MR against debouncer-mini and -full. Having an ignore on the level of notify will be hard.