how to know if folder contents have changed

Martin Marcher martin at marcher.name
Mon Nov 12 12:27:31 EST 2007


2007/11/12, davisn90210 at gmail.com <davisn90210 at gmail.com>:
> Why not use the file creation/modification timestamps?

because you'd have to

a) create a thread that pulls all the time for changes or
b) test everytime for changes

fam informs in a notification like way.

Personally I'd create a "hidden" cache file parsable by configparser
and have filename = $favorite_checksum_algo - key value pairs in it if
it's not a long running process.

Otherwise I'd probably go with fam (or hal i think that's the other
thing that does that)

hth
martin

-- 
http://noneisyours.marcher.name
http://feeds.feedburner.com/NoneIsYours



More information about the Python-list mailing list