-
Notifications
You must be signed in to change notification settings - Fork 22
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
Watch is posting events that aren't specified in a configuration #1079
Comments
Adding discussion needed if ever it isn't addressed before the dev meeting next week |
flowcb/gather/file.py Algorithm1st call to gather():
subsequent calls to gather()
so what I hope happens with a mkdir?
oh... that's stupid... I get it...
with the thing above... it calls the file version if mkdir is not in events... instead of ignoring it.
Can you try making that change, and see if it helps? |
That looks to have fixed it! |
OK make a PR? |
Scenario
fileEvents create
in the configuration.sr3 show watch/my-config | grep fileEvents
and it should returnpath
specified in the watch configurationmkdir
andmodify
events being posted downstream, even though these weren't specified inside of the configuration.Analysis
sarracenia/flowcb/gather/file.py
and noticed that there is a method calledon_created
which logs when themkdir
event is called. However, I wasn't able to figure out where this is being called from the code.walk
method we go through the entire tree recursively and when we get topost1file
we don't check for events when determining if the file is a directory or not. FYI This is probably wrong.sarracenia/sarracenia/flowcb/gather/file.py
Lines 394 to 397 in c647b96
The text was updated successfully, but these errors were encountered: