dsoprea / PyInotify

An efficient and elegant inotify (Linux filesystem activity monitor) library for Python. Python 2 and 3 compatible.
GNU General Public License v2.0
245 stars 73 forks source link

Recursive watching fails on directory deletion #51

Open amigian74 opened 6 years ago

amigian74 commented 6 years ago

The following scenario does not work as expected:

dsoprea commented 6 years ago

Well, two things:

  1. There's currently an issue that needs to have a merge-conflict resolved that fixes a bug having to do with new directories not being registered recursively: https://github.com/dsoprea/PyInotify/pull/31 . If the OP can't get the conflicts resolved in the next couple of days, then I'll do it.

  2. There might occasionally be side effects due to recursive support not being in the kernel, but this was considered the lesser evil by the designers, rather than imposing a potentially high-cost to support this on the kernel. We just can't prevent some race conditions when a large number of changes are made at high-velocity.