Skip to main content

Module file_watcher

Module file_watcher 

Source
Expand description

File watcher using the notify crate for native filesystem event detection.

Monitors a working directory for file changes using OS-level filesystem notifications (FSEvents on macOS, inotify on Linux, ReadDirectoryChanges on Windows). Events are debounced with a configurable interval (default 500ms). Includes an inactivity timeout that stops watching after a configurable period of no detected changes (default 5 minutes).

Structs§

FileChange
A file change detected by the watcher.
FileWatcher
Monitors a working directory for file changes using OS-native filesystem notifications via the notify crate.
FileWatcherConfig
Configuration for the FileWatcher.

Enums§

FileChangeKind
The type of file change.