fsnotify
A file system monitor in Nim.
Summary
| Latest Version | Unknown |
|---|---|
| License | Apache-2.0 |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install fsnotify
choosenim install fsnotify
git clone https://github.com/planety/fsnotify
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| fsnotify | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/planety/fsnotify |
|---|---|
| Homepage | https://github.com/planety/fsnotify |
| Registry Source | nimble_official |
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)