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)
The easiest fix is to make sure IN_CLOSE_WRITE is processed only on directories.
@validate_ filename IN_CLOSE_ WRITE(self, event): IN_ISDIR) :
self. general_ processor. push_event( event)
def process_
"""Ecryptfs sends this inotify event for lower directories."""
if not (event.mask & pyinotify.