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

FileWatcher hangs when received an Event on a File which is deleted #86

Open
shivakumargowda12 opened this issue Oct 22, 2019 · 1 comment

Comments

@shivakumargowda12
Copy link

Hi,
I have uploaded a sample go code which contains logic to handle different File Watcher events.
Suppose, If I delete a File which is being watched already, the logic hangs while trying to Call Remove(path) function of watcher.go and never returns.

Requirement:
To dynamically add/remove files to FileWatcher object during File Creation or Deletion inside a specific folder.

I have seen previous similar issues and workaround/solution for those issues.
#22
#48

But wanted to know solution specific to my use case.
Thanks
FileWatcher.go.txt

@shivakumargowda12
Copy link
Author

shivakumargowda12 commented Oct 22, 2019

@radovskyb , any solution to this issue. (Version: 1.0.7)

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

1 participant