This PR fixes events from combined flags (i.e. Event::move and Event::close) are handled as unexpected event by misregistrating event handler function.
Steps to reproduce issue
Build example (no modification needed)
Run example with arbitrary directory (ex. /tmp)
Run touch /tmp/a
Run mv /tmp/a /tmp/aa
Now you may see message like below which says events are not expected
Event moved_from on "/tmp/a" at 4072388246712760 was triggered, but was not expected
Event moved_to on "/tmp/aa" at 4072388246784505 was triggered, but was not expected
This PR fixes events from combined flags (i.e.
Event::move
andEvent::close
) are handled as unexpected event by misregistrating event handler function.Steps to reproduce issue
touch /tmp/a
mv /tmp/a /tmp/aa