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

index 5e0061f..c222a45 100644 (file)
@@ -193,10 +193,12 @@ namespace Project {
                                while ((next_file = file_enum.next_file(null)) != null) {
                                        var fn = next_file.get_display_name();
                                        
-                                       GLib.debug("SCAN ADD %s - checking %s\n", dirname, fn);
+                                       
                                        if (!GLib.FileUtils.test(in_path + "/" + fn, GLib.FileTest.IS_REGULAR)) {
+                                               GLib.debug("SKIP %s not regular %s", fn);
                                                continue;
                                        }
+                                       GLib.debug("SCAN ADD %s ", fn);
                                        ret.add(in_path + "/" + fn);
                                         
                                        // any other valid types???
@@ -324,6 +326,7 @@ namespace Project {
                                        // add the 'c' file..
                                        ret.add(fn);
                                } catch (Error e) {
+                                       GLib.debug("Exception %s",e.message);
                                        continue;
                                }
                        }