We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I added a filter hook as follows
autogen_skipper := func(info os.FileInfo, fullPath string) error { if info.IsDir() && info.Name() == "autogen" { log.Error(ctx, "skipping autogen") return watcher.ErrSkip } log.Error(ctx, "not skipping ") return nil } .... w.AddFilterHook(autogen_skipper) .... w.AddRecursive(folderToWatch);
This code skips autogen directory, however the files in the autogen folder are not skipped.
Expected behavior is that if a folder is skipped then this method should not have been called for files in the folder
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I added a filter hook as follows
This code skips autogen directory, however the files in the autogen folder are not skipped.
Expected behavior is that if a folder is skipped then this method should not have been called for files in the folder
The text was updated successfully, but these errors were encountered: