Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(watcher): Use notify_debouncer_full
Based on code by @nyarly, this debounces watch events before filtering file paths. `notify_debouncer_full` will do the hard part of making sure spurious events are sufficiently removed before we match on them. From the docs: * Only emits a single Rename event if the rename From and To events can be matched * Merges multiple Rename events * Takes Rename events into account and updates paths for events that occurred before the rename event, but which haven't been emitted, yet * Optionally keeps track of the file system IDs all files and stiches rename events together (FSevents, Windows) * Emits only one Remove event when deleting a directory (inotify) * Doesn't emit duplicate create events * Doesn't emit Modify events after a Create event
- Loading branch information