-
-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected file 'change' events on directory creation. #499
Comments
The same problem has been reported here: floatdrop/gulp-watch#236 I can also reproduce the issue in Windows 10: require('chokidar').watch('.', { ignoreInitial: true }).on('all', (event, path) => {
console.log(event, path);
}); |
These events are being reported by node core Using |
So, it is actually a bug in the Node core then? Do we already have a bug reported there? |
I don't know whether there's currently an open issue about this behavior, and I am also unsure whether the issue can be fixed in node, or whether it's actually deeper down in the The starting point would be to modify the repro script to show it happening with just |
Looks like this is a known issue in libuv. |
Ah, right ok so this is the same as #420. Will close this one as a dupe then and keep tracking it there. Unfortunately it still seems there is no solution that can be accomplished within chokidar. |
I'm on Windows 8.1 x64, node v4.4.5 \ v.6.1.0 , Chokidar 1.5.2.
Problem occurs only on Win platform.
When creating a directory, 'change' events fire for files (at the same level) whose paths include the path to created directory.
For example, if you create "name" directory in a folder which contains "name.js", 'change' event for "name.js" will be fired.
https://gist.github.com/arubtsov/7c42600ab9f2c69791c400a130404b26
The text was updated successfully, but these errors were encountered: