From 6798433d7ce8bc71a5f50d1a84475579553a4032 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 26 May 2015 14:06:55 +0800 Subject: [PATCH] src/Project/Gtk.vala --- src/Project/Gtk.vala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } } -- 2.39.2