forked from paulmillr/chokidar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Rescan directory after setting up watch to prevent a race
Sometimes, when another process just happened to create a file when we were setting up a watch, the new file wouldn't be noticed. To prevent the event not being generated in this case, schedule a directory rescan immediately after setting up a watch. Fixes paulmillr#1112
- Loading branch information
1 parent
6bdda7f
commit a2ea88c
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
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