I have built a simple folder monitor and I would love to trace the exact changes that happen to the document when it gets modified.
changesListStart
add: [addr: 992921, bytes: "/x58/x29/x18/xf0/x03/x90/x10/x20/xff"],
remove: [addr: 812394, length: 1221],
remove: [addr: 100000, length: 522],
remove: [addr: 200000, length: 101],
add: [addr: 1230911, bytes: "/x19/x01/x92/x38/x92/x10/xFF/xB0/xCD"]
add: [addr: 1231000, bytes: "/x19/x01/x92/x38/x92/x10/xFF/xB0/xCD"]
changesListEnd
I know this is possible in inotify with IN_ACCESS and IN_WRITE_CLOSE, but I wouldn't wanna reimplement my solution.