Skip to main content

Module watcher

Module watcher 

Source
Expand description

File system watcher.

Uses the notify crate to watch for file changes and emit events through a tokio channel for incremental index updates.

Structs§

FileWatcher
A file watcher that monitors a directory tree for changes.

Enums§

FileEvent
A file system event suitable for incremental indexing.

Functions§

dedup_events
Deduplicate events by path, keeping only the latest event type per path.
start_async_watcher
Create an async watcher that sends events through a tokio channel.