rjeczalik/notify

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

Opened this issue · 5 comments

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

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

Had you been able to resolve this issue?

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

@mauricioabreu Thanks for the reply!

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

Regards