*/
public void start()
{
- foreach(var i in this.top) {
+ for(int i = 0; i < this.monitors.size ; i++) {
this.monitor(this.top[i]);
}
}
public void stop()
{
- foreach(int i = 0; i < this.monitors.size ; i++) {
+ for(int i = 0; i < this.monitors.size ; i++) {
this.monitors[i].cancel();
}
this.monitors = new ArrayList<FileMonitor>(); // clean /destroy/ kill old?
fm.changed.connect( ( fm, f_orig, of_orig, event_type) => {
this.onEvent (fm, f_orig, of_orig, event_type ) ;
});
- this.monitors.add(fm);
+ this.monitors.add(fm, '', 0);
// print("ADD path " + depth + ' ' + path);
}
// iterate children?