#!/usr/bin/env python
import gamin
import time

def callback(path, event):
    print "Got callback: %s, %s" % (path, event)

mon = gamin.WatchMonitor()
mon.watch_directory("/home/yop/tmp/", callback)
mon.watch_directory("/mnt/sshfs/", callback)
while True:
	time.sleep(1)
	mon.handle_events()
