}
-class MonitorNamePathDir {
+public class MonitorNamePathDir {
public string name;
public string path;
this.paused = false;
}
- public ArrayList<FileMonitor> monitors;// Array of GioFileMonitors
+ public ArrayList<FileMonitor> monitors;// Array of MonitorNamePathDirileMonitors
public ArrayList<string> top; // list of top level directories..
public bool paused;
/**
if (depth > 0) {
var fm = f.monitor(FileMonitorFlags.SEND_MOVED,null); //Gio.FileMonitorFlags.SEND_MOVED
- fm.changed.connect(onEvent);
+ fm.changed.connect( ( fm, f_orig, of_orig, event_type) => {
+ this.onEvent (fm, f_orig, of_orig, event_type ) ;
+ });
this.monitors.add(fm);
// print("ADD path " + depth + ' ' + path);
}
// this.initRepo(path);
//}
- var enumerator = directory.enumerate_children (FILE_ATTRIBUTE_STANDARD_NAME, 0, null);
-
-
+
var file_enum = f.enumerate_children(
- FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME + ','+ FILE_ATTRIBUTE_STANDARD_TYPE,
+ FileAttribute.STANDARD_DISPLAY_NAME + "," + FileAttribute.STANDARD_TYPE,
0, // FileQueryInfoFlags.NONE,
null);
//print("got a file " + next_file.sudo () + '?=' + Gio.FileType.DIRECTORY);
- if (next_file.get_file_type() != FILETYPE_DIRECTORY) {
+ if (next_file.get_file_type() != FileType.DIRECTORY) {
next_file = null;
continue;
}
- if (next_file.get_file_type() == FILETYPE_SYMBOLIC_LINK) {
+ if (next_file.get_file_type() ==FileType.SYMBOLIC_LINK) {
next_file = null;
continue;
}
public void onDeleted(MonitorNamePathDir src) { }
public void onCreated(MonitorNamePathDir src) { }
public void onAttributeChanged(MonitorNamePathDir src) { }
- public void onMoved(MonitorNamePathDir src) { }
+ public void onMoved(MonitorNamePathDir src,MonitorNamePathDir dest) { }
}