I've reimplemented the monitoring/change detection functionality of pytddmon.
So far it is not integrated into pytddmon, I just developed it separately.
The idea was to skip the "hashing" completely, and just take a
'snapshot' of the current file system, as viewed by pytddmon. Then,
when asked by pytddmon to look for changes, just take another
'snapshot' and compare them, to see if anything changed.
Technically the snapshot is a dictionary file -> (size, modtime).
I've written 6 unit tests for it (no change, size change, file rename,
new file, modtime change, change only detected once).
Here's a paste of the file:
What do you think?
With only looking at the email.
+5
elegant!
2012/3/8 Rafael Capucho <rafael....@gmail.com>: