No description
Find a file
2020-04-28 12:03:16 +08:00
src Implement basic monitor 2020-02-28 22:24:08 +08:00
.gitignore init 2020-02-28 21:41:37 +08:00
libfswatch.nimble Add .nimble file 2020-02-28 21:56:38 +08:00
LICENSE #3 Update LICENSE 2020-04-28 12:03:16 +08:00
README.md Update usage in readme 2020-02-28 22:24:20 +08:00

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()