var ret = new Gee.ArrayList<string>();
//this.package_cache = new Gee.ArrayList<string>();
-
+
+ if (!GLib.FileUtils.test(dirname, FileTest.IS_DIR)) {
+ print("opps package directory %s does not exist", dirname);
+ return ret;
+ }
var dir = File.new_for_path(dirname);
+
+
try {
var file_enum = dir.enumerate_children(
GLib.FileAttribute.STANDARD_DISPLAY_NAME,
var is_last = i == parts.length -1;
+
// look up all the properties of the type...
var cls = Gir.factoryFqn(curtype);
if (cls == null && curtype[0] != '*') {
// only exact matches from here on...
if (cur_instance) {
+ if (cls == null) {
+ return ret;
+ }
if (cls.props.has_key(parts[i])) {
var prop = cls.props.get(parts[i]);
if (prop.type.index_of(".",0) > -1) {
return ret;
}
print("matching property");
-
+ if (cls == null) {
+ return ret;
+ }
var citer = cls.methods.map_iterator();