tracking file changes

27 views
Skip to first unread message

Alexandru Florescu

unread,
Mar 12, 2018, 6:19:50 PM3/12/18
to watchdog-python
Hey guys,

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. 

What I want to generate is something as such:

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.

Is there a workaround with this? : )

Thank you so much,
Alex
Reply all
Reply to author
Forward
0 new messages