nim-fswatch icon indicating copy to clipboard operation
nim-fswatch copied to clipboard

Nim wrapper for the libfswatch

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