Is there any way to print a watched file modification ? let's take an example: I'm monitoring file.txt, Pyinotify can tell me that it has been modified, but It can't seem to be able to output what changes occured ? Am I wrong ? How can I see what changes has been made to a file that I'm monitoring ?
Big thanks in advance, sorry for my bad english.
The inotify
mechanism does not embed the deltas in the event, because it should compute it before saving the files and this could affect performance since this information is not usually needed.
You could use an approach like: