-
Notifications
You must be signed in to change notification settings - Fork 325
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
Allow filtering by event type #46
Comments
I would definitely like this as well. For example, I only want newly created files to appear in the output. |
Hi @grosch, I expect this issue to be closed quite soon. I'll post updates here. |
I'd like to second this, I'm writing a script to move newly-created files that are dropped remotely into a folder, but on Linux each file creation results in 4 events (only one of which is creation) - and it can also results in an event on the parent folder. So it's much harder to isolate just the created file |
Like the others have said, I think this feature would be extremely useful. I realize that it may not be trivial to implement this in a platform-independent manner, because the events probably differ from one platform to another. Thank you for all the hard work! |
Hi @lucianp, you're welcome and thanks, it's appreciated. Yes, I agree it would be useful. In fact, I'm reviewing the mappings between platform-specific events and "generic" fswatch events soon and implement this. |
Hi all, This issue has been fixed in 1.5.0. I'll prepare the OS X ports shortly. |
Hey @emcrisostomo, could you elaborate on how to use the event filters? I tried
which I expected to fire only on CLOSE_WRITE events.
Unfortunately, on my linux machine this just immediately exits. |
@fanktom hello from the future. Leaving this here incase anyone else is having issues using the event filters. I wasn't able to find the event names anywhere on github or the After looking at the source I found the event names here in the event.cpp I was able to use the event filters like so:
For an even more specific example I used the filters combined with the
|
No description provided.
The text was updated successfully, but these errors were encountered: