-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
1 parent
7442674
commit faa2736
Showing
4 changed files
with
325 additions
and
140 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.