Removing a watched directory which contains watched file causes an error
Closed this issue · 1 comments
jakerr commented
I'm on OS X
Removing with "rm -r" a watched dir which includes a watched file causes an error.
I expected rather, that delete events for each item and the containing folder would be generated.
Steps to reproduce
- Watch a directory
- Watch a file in the directory
- Rm -rf the directory
A repro case:
howeyc commented
Thanks for the providing the gist, made finding the issue much easier. I hope the fix I put in place works for you on OSX, I only have BSD machines but was able to reproduce the issue.
Please reopen if it doesn't work for you.