Module file_watcher

Module file_watcher 

Source
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§

FileWatcherBuilder
A builder for creating file watchers with flexible configuration.
FileWatcherConfig
Configuration for the file watcher behavior.

Functions§

is_relevant_event 🔒
Check if an event kind is relevant based on the configuration.