public void start()
{
for(int i = 0; i < this.top.length ; i++) {
- this.monitor(this.top.index(i), ( fm, f_orig, of_orig, event_type) => {
- this.onEvent (fm, f_orig, of_orig, event_type ) ;
- } );
+ this.monitor(this.top.index(i));
}
}
/**
*
*
*/
- public void monitor(string path, onEventHander fn , int depth = 0)
+ public void monitor(string path, int depth = 0)
{
print("ADD: " + path + "\n");
fm.changed.connect( ( fm, f_orig, of_orig, event_type) => {
//if (fn) {
- fn (fm, f_orig, of_orig, event_type ) ;
+ this.onEvent (fm, f_orig, of_orig, event_type ) ;
// return;
//}
//this.onEvent (fm, f_orig, of_orig, event_type ) ;
- this.monitor(sp, fn, depth + 1);
+ this.monitor(sp, depth + 1);
}
try {