Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 384 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 384 Bytes

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