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

Recursive watching fails on directory deletion #51

Open
amigian74 opened this issue Jul 3, 2018 · 1 comment
Open

Recursive watching fails on directory deletion #51

amigian74 opened this issue Jul 3, 2018 · 1 comment

Comments

@amigian74
Copy link

amigian74 commented Jul 3, 2018

The following scenario does not work as expected:

  • Watching a directory recursively
  • Creating a directory inside the watched directory
  • create files inside the new directory
  • delete the created directory
  • everything until now works fine
  • create the directory again
    -> Path already being watched: [path of the directory]
  • everything inside this directory is not watched anymore
@dsoprea
Copy link
Owner

dsoprea commented Jul 7, 2018

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: Fixed bug: mkdir -p foo/bar,InotifyTree(s) not add watch bar #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.

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

2 participants