The delete directory process exits
Don't want him to back out and help
@zdwork sorry?
Is there any good way to solve it? I did it with a gorouting, as long as we don't let the main process exit
Sorry I still don't understand what you're trying to say.
Don't let main exit.goroutine exec tail
How do you delete a file without letting it exit
You can remove the directory from watcher before deleting it.
Excuse me, how do I do that
w.RemoveRecursive(path)
//or
w.Remove(path)
Sorry, what I just said is wrong, we all delete it first
if name == err.(*os.PathError).Path { //w.Error <- ErrWatchedFileDeleted w.RemoveRecursive(name) }
howdy Is that ok?