Watch directory changes with Python
Pyinotify is a wrapper for the inotify feature of the 2.6.13+ Linux kernel. It will help you detect any file or directory changes made on a filesystem. The project homepage includes a nice tutorial to get you started.
Obviously this only works under Linux. If you want something for Windows, you might want to check out the directory watching recipe at the ASPN Python Cookbook.