src/Project/Gtk.vala
authorAlan Knowles <alan@roojs.com>
Tue, 26 May 2015 05:55:26 +0000 (13:55 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 26 May 2015 05:55:26 +0000 (13:55 +0800)
src/Project/Gtk.vala

index 9917fb7..a8712aa 100644 (file)
@@ -194,7 +194,9 @@ namespace Project {
                                        var fn = next_file.get_display_name();
                                        
                                        GLib.debug("SCAN %s - checking %s\n", dirname, fn);
-                                        
+                                       if (!GLib.FileUtils.text(in_path + "/" + fn, GLib.FileTest.IS_REGULAR)) {
+                                               continue;
+                                       }
                                        ret.add(in_path + "/" + fn);
                                         
                                        // any other valid types???