-
Notifications
You must be signed in to change notification settings - Fork 357
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
Directory deletions don't trigger a watch event #273
Comments
Mind posting your gruntfile, node.js version and operating system? |
Sorry, yeah, I'll put together a test case tomorrow. |
Same here. When I delete a folder, the trigger is not fired OS: Win8 Gruntfile:
|
Had the same behavior, seems fixed in the latest version of node (I was about to report this bug but then I noticed the version number of node and upgraded). Fixed in the current version. |
Are the patterns matching a folder being deleted? For instance the pattern |
Just did a quick test because i found that an interesting question. That works also (added a folder test.js and added a file, then removed the folder at once). The watch fired ever step of the way: once upon folder creation, once upon adding the file, once upon deletion :) |
I'm afraid I'll have to retract my statement from earlier on... It seems that on my other machine (same version configs, same gruntfile etc), the folder deletion does not fire when performing the same actions... I'm not sure what's different. |
I also experience this. I would expect a folder deletion to fire off the watch task if its matched by the pattern. It does pick up the event when creating a folder, a file in that folder, or deleting a file in that folder. This is on: Watch config:
|
Same problem here. Directory deletion does not fire up any event, however something is happening because after deleting the directory AND THEN deleting some other, random FILE Grunt produces an error: >> watch ENOENT
>> watch ENOENT (repetition amount is random).
I'm using watch plugin by triggering my custom function bound to the grunt.event.on('watch', function (action, filepath, target) {...} |
Still experiencing this issue in: node v4.5.0 My watch task file pattern is: Deleting #217 is related, I believe. |
This issue still persists.
Code above will only log files/directories added, file changes, deletion of files, but not deletion of directories.
|
Watch events don't seem to be getting triggered when a directory is deleted.
The text was updated successfully, but these errors were encountered: