SkillAgentSearch skills...

Fsnotify

A file system monitor in Nim

Install / Use

/learn @planety/Fsnotify
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

fsnotify

A file system monitor in Nim

Supporting platform

|Platform|Watching Directory|Watching File| |---|---|---| |Windows|ReadDirectoryChangesW |polling using os.getLastModificationTime and os.fileExists| |Linux|inotify|polling using inotify and os.fileExists| |Macos|TODO(fsevents)|polling using os.getLastModificationTime and os.fileExists| |BSD|Not implemented|TODO(kqueue)|

Hello, world

import std/os
import fsnotify


proc hello(event: seq[PathEvent]) =
  echo "Hello: "
  echo event

var watcher = initWatcher()
register(watcher, "/root/play", hello)

while true:
  sleep(500)
  process(watcher)
View on GitHub
GitHub Stars44
CategoryDevelopment
Updated4mo ago
Forks9

Languages

Nim

Security Score

87/100

Audited on Nov 25, 2025

No findings