ExFSWatch
Elixir version of fswatch base on fswatch
C_drive version is developing.
Usage
defmodule Monitor do
use ExFSWatch, dirs: ["/tmp/fswatch"]
def callback(:stop) do
IO.puts "STOP"
end
def callback(file_path, events) do
IO.inspect {file_path, events}
end
end
iex > Monitor.start