I have the application, which runs when new file appears in specific directory. For this purpose I use nncron (cron for windows), an example
#(
500 VALUE MonitorDirTimeout
WatchDir: "c:\directory" WatchSubtree
WATCH-CHANGE-LAST-WRITE
Action:
StartIn: "c:\directory"
SWHide NormalPriority
START-APP: c:\app.py
)#
I want to use event-driven programming and Twisted, and want to execute callback when new file appears in directory. Of course, I can monitor directory by using LoopingCall, but its not event-driven.