added throttling

This commit is contained in:
Rudi Grinberg 2012-10-25 16:04:12 -04:00
parent f9f3f9527e
commit f21c26677b
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
import time
import media.monitor.pure as mmp
import media.monitor.owners as owners
from media.monitor.handler import ReportHandler
@ -72,6 +72,8 @@ class Organizer(ReportHandler,Loggable):
directory=d)
return cb
time.sleep(0.1)
mmp.magic_move(event.path, new_path,
after_dir_make=new_dir_watch(dirname(new_path)))