An error occurred using removewatch for inotify in golang

113 0

Recently, we began to study the new language of golang, and the.
But it's time to find using the os inotify.
Use removewatch to cancel monitoring of this folder when the event in delete removes the folder
rm _ watch: invalid argument
If it isn't a good thing to delete in the event, it isn't known that I'm listening to the time position, or what causes it to be.
Do you've a on the related aspects of.

1 Answers

80 2

Before you ask the question, you don't know that you've solved it. But for the latter, the package doesn't exist, and I suggest that you use the following package:

https://github. com/howeyc/fsnotify.

Support system

  • Windows
  • Linux
  • BSD
  • OSX