Expand description
Common file watching utilities for configuration hot-reloading.
This module provides a generic file watcher that can be used to watch files for changes and trigger callbacks when changes occur.
The watcher monitors the parent directory of each file rather than the file itself. This ensures that file deletions and recreations are properly tracked, which is common with editors that use atomic saves or when configuration files are replaced.
Structs§
- File
Watcher Builder - A builder for creating file watchers with flexible configuration.
- File
Watcher Config - Configuration for the file watcher behavior.
Functions§
- is_
relevant_ 🔒event - Check if an event kind is relevant based on the configuration.