rjeczalik / notify

File system event notification library on steroids.
MIT License
900 stars 128 forks source link

Is there a way to "unwatch" a removed directory? #186

Open mauricioabreu opened 4 years ago

mauricioabreu commented 4 years ago

I am facing a problem where a directory is removed.

Example:

notify.Watch("/foo/...", events...)

A path inside foo is removed once in a while (I can't control it). How can I unwatch that removed directory? I tried to rewatch it using the Watch function but it did not work.

The underlying watcher is inotify

vivek-bansal-VB commented 3 years ago

Did you solve this issue? I am facing the same problem.

vivek-bansal-VB commented 3 years ago

Had you been able to resolve this issue?

mauricioabreu commented 3 years ago

@vivek-bansal-VB sorry for the delay. No, I did not solve the problem.

vivek-bansal-VB commented 3 years ago

@mauricioabreu Thanks for the reply!

ior308 commented 2 years ago

Dear I'm looking for the same feature. Can I unwatch one of many paths I put with notify.watch ?

Regards