Open ciokan opened 8 years ago
I'll add the new inferface to solve this problem like this:
{:ok, pid} = Fwatch.start_link(:syslog_watcher, "/var/log")
Fwatch.watch_file(pid, "/var/log/syslog", callback)
But this doesn't work on the current version(0.9.2) of fs. Why Is :fs.start_link/2 Undefined?
@ciokan
I added the API.
Since it can not be published to hex.pm yet it can be used by specifying {:fwatch, github: "ryo33/fwatch", branch: "master"}
.
Just used the code from your README with a watch on
/var/log/syslog
. No events are being sent out