rjeczalik / notify

File system event notification library on steroids.
MIT License
900 stars 128 forks source link

Fixes for non-recursive tree when dirs are deleted (fixes #200) #201

Closed imsodin closed 3 years ago

imsodin commented 3 years ago

I added a test based on the example posted in #200.

The main change is to also pass Remove events to t.rec, and then unwatch and delete nodes under that path. Thus when it gets created again, new watches will be set up (instead of keeping the old, now invalid watches).

I also fixed some stuff I encountered while debugging and fixing:

aanisimov commented 3 years ago

@rjeczalik could you please provide some info on when this PR will be merged to master?

imsodin commented 3 years ago

Any chance you could find some time to review this?

rjeczalik commented 3 years ago

@imsodin Sorry for letting you hang on this, looks good!