I am trying to watch a directory, and is looking for file modifications. Thinking of using pyinotify. Problem is that while using IN_MODIFY event to check for a file change, it triggers quite a number of events if I am copying even a small file of say 12 MB to the directory over a network.
I dont want to handle so many triggers. I want to only trigger a single event, after the file is copied. How do I achieve that?
Any Pyinotify gurus can help