-
Notifications
You must be signed in to change notification settings - Fork 74
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
InotifyTree does not pick up file events if the directories created #110
Comments
This can be expected as https://github.com/dsoprea/PyInotify#notes. The sample code is creating the directory in the same single thread/CPU, then InotifyTree can miss the timing.
|
This is also a problem if the directory is created with a ie: if This should be an easy fix. When a dir is added, check if it has subdirs and add them. |
I'm not good enough with python to provide a PR, but it seems to me that the add-watch should be calling the |
Environment
Reproducing the issue
If create the directories after monitoring started, file events e.g CLOSE_WAIT do get picked up.
If the directories created in-advance, file events e.g CLOSE_WAIT get picked up.
The text was updated successfully, but these errors were encountered: