Supervisted Erlang binding for inotify
The library interfaces with inotify using and Erlang NIF. The NIF spawns off a thread which then polls the inotify file descriptor for any changes to a watched descriptor.
Add the library to your rebar config
{deps, [
{notify, {git, "https://github.com/erlsci/inotify.git", {tag, "v0.5.0,"}}},
....
]}.
Then just use rebar3
to download, compile (including the NIF), and use in
your code:
$ rebar3 compile