Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mauricioabreu opened this issue Feb 18, 2020 · 5 comments
Open

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

mauricioabreu opened this issue Feb 18, 2020 · 5 comments

Comments

@mauricioabreu
Copy link

mauricioabreu commented Feb 18, 2020

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
Copy link

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

@vivek-bansal-VB
Copy link

Had you been able to resolve this issue?

@mauricioabreu
Copy link
Author

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

@vivek-bansal-VB
Copy link

@mauricioabreu Thanks for the reply!

@ior308
Copy link

ior308 commented Sep 29, 2021

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

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants