Closed Elias481 closed 5 years ago
Added testcase for issue #46 . Original result on current base can be found here: https://travis-ci.com/Elias481/PyInotify/builds/85639642
Added testcase for issue #51 . Original result on current base can be found here: https://travis-ci.com/Elias481/PyInotify/builds/85643184
Includes pull-requests #57 and #58 from XaF as changes are very related. Fixes the issue blocking #57 (superficial mode for IN_MOVED_FROM must be False as soon as remove_watch does not ignore this argument). And indirectly fixes #58 which is depending on #57 because both commits are now together... Additionally removed duplicate IN_MOVED_TO in same function.
Further fixes the issue that remove_watch_with_fd which is a public method can now be called standalone without causing inconsitencies.
And enhances the remove_watch so that it could ne used to remove only the fd from inotify. (There are use-cases for this.) Third state for superficial (None instead of True or False) used for that.
These fixes should obsolete issue #46 and #51 and my #59 (beside the idea for automatic unregistration on IN_IGNORE event but that just a nice to have idea and has no priority in my opinion).