-
Notifications
You must be signed in to change notification settings - Fork 222
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
Add FsEventWatcher Support. fix #7 #13
Conversation
I'm going to leave this to @octplane to evaluate and decide if it's mergeable or if some of it should be split back to fsevent-rust. I'd also like to have watch and unwatch working completely before merging, unless y'all think that's too much work. |
:) done. |
@octplane if some of this should be split back to fsevent-rust? |
LGTM. I will probably later remove some code from here to avoid duplication with my binding, but is seems reasonable to merge as-is if it is working correctly :). Great job @andelf! |
@andelf: yes ! your comment arrived while I was writing mine :) |
Leave the Watcher open for further |
I'll probably merge in either a few hours, or tomorrow. Thanks both for the great work! |
@@ -67,7 +75,18 @@ fn new_inotify() { | |||
} | |||
|
|||
#[test] | |||
fn new_poll() { | |||
#[cfg(target_os = "macos")] | |||
fn new_inotify() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should say new_fsevent()
.
Comments in the code are minor style nitpicks, ignore them; I'll fix in the merge. |
} | ||
|
||
|
||
pub fn is_api_available() -> (bool, String) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be a Result<(), String>
This is ispired by the original work of https://github.com/octplane/fsevent-rust .
Currently you can only call.watch()
once, and.unwatch()
left unimplemented.Good news is that
Drop
works. :)UPDATE:
.watch()
.unwatch()
works.r: #12 #7
@octplane