Skip to content

Register handler with individual event for combined flags #91

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hrkn
Copy link

@hrkn hrkn commented Sep 4, 2023

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

  1. Build example (no modification needed)
  2. Run example with arbitrary directory (ex. /tmp)
  3. Run touch /tmp/a
  4. Run mv /tmp/a /tmp/aa
  5. 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
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant