Skip to content
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 doesn't work on re-created directory #77

Open
AiRyunn opened this issue Nov 14, 2019 · 3 comments
Open

InotifyTree doesn't work on re-created directory #77

AiRyunn opened this issue Nov 14, 2019 · 3 comments

Comments

@AiRyunn
Copy link

AiRyunn commented Nov 14, 2019

I'm using InotifyTree, but when I recreate a directory, it outputs "Path already being watched: /my/folder", and ignore all events about this folder.

@dkrystki
Copy link

I'm having the same problem.

@PlasmaHH
Copy link

It seems this issue is caused by the module not listening to IN_DELETE_SELF events. In theory it would work to just register yourself for that event and call remove_watch on the Inotify object, however since the superficial parameter is not passed on from remove_watch to remove_watch_with_id this would result in an invalid system call. Since this is the last statement in that function calling remove_watch and catching that exception works as a workaround for me....

@dheeg
Copy link

dheeg commented Sep 22, 2022

This is already fixed in the master branch but not the current pip package.

pip install git+https://github.com/dsoprea/PyInotify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants