Server directory monitoring with PHP & cron ?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I'd like my server to notify me via e-mail whenever users upload files to their
private SFTP directories.  I'm thinking about cobbling together a script that :
- runs via cron
- creates some kind of chksum for each directory
- compares the chksum to the previous one stored in a MySQL database
- e-mails me if anything has changed
- saves the new chksum

But I'm wondering if this (or something else that suits the purpose) has already
been done, and if so, where the code is available ?

Thanks for any and all advice.

Site Timeline