From: Alan Knowles Date: Tue, 26 May 2015 06:06:55 +0000 (+0800) Subject: src/Project/Gtk.vala X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=6798433d7ce8bc71a5f50d1a84475579553a4032 src/Project/Gtk.vala --- diff --git a/src/Project/Gtk.vala b/src/Project/Gtk.vala index 5e0061fc7..c222a45e4 100644 --- a/src/Project/Gtk.vala +++ b/src/Project/Gtk.vala @@ -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; } }