mirror of
https://github.com/paul-nameless/nim-fswatch
synced 2026-01-09 07:11:07 +00:00
No description
| src | ||
| .gitignore | ||
| libfswatch.nimble | ||
| LICENSE | ||
| README.md | ||
Nim fswatch
Nim binding to libfswatch
Install
brew install fswatch
nimble install libfswatch
Usage
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()