Nim binding to libfswatch
brew install fswatch
nimble install libfswatch
import libfswatch
import libfswatch/fswatch
proc callback(event: fsw_cevent, event_num: cuint) =
echo event.path
var mon = newMonitor()
mon.addPath("/tmp/test/")
mon.setCallback(callback)
mon.start()