Comment 2 for bug 872894

Revision history for this message
Roman Yepishev (rye) wrote : Re: Unhandled INotify events break syncdaemon file watching

The easiest fix is to make sure IN_CLOSE_WRITE is processed only on directories.

    @validate_filename
    def process_IN_CLOSE_WRITE(self, event):
        """Ecryptfs sends this inotify event for lower directories."""
        if not (event.mask & pyinotify.IN_ISDIR):
            self.general_processor.push_event(event)