thin-edge.io icon indicating copy to clipboard operation
thin-edge.io copied to clipboard

fs_notify generates events on wrong directory paths

Open PradeepKiruvale opened this issue 2 years ago • 0 comments

Proposed changes

This PR fixes the issue related to raising the events for the wrong directory when watching multiple directories. Uses the inotify fix that helps to extract the exact path on which the event has been raised.

Types of changes

  • [x] Bugfix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [x] Improvement (general improvements like code refactoring that doesn't explicitly fix a bug or add any new functionality)
  • [ ] Documentation Update (if none of the other choices apply)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue

https://github.com/thin-edge/thin-edge.io/issues/1453

Checklist

  • [x] I have read the CONTRIBUTING doc
  • [x] I have signed the CLA (in all commits with git commit -s)
  • [x] I ran cargo fmt as mentioned in CODING_GUIDELINES
  • [x] I used cargo clippy as mentioned in CODING_GUIDELINES
  • [x] I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added necessary documentation (if appropriate)

Further comments

PradeepKiruvale avatar Sep 21 '22 06:09 PradeepKiruvale