From 2fe90cede2926d98a3b77818df50e9509574b317 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 28 Oct 2015 18:11:54 +0800 Subject: [PATCH] JSDOC/Packer.vala --- JSDOC/Packer.vala | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/JSDOC/Packer.vala b/JSDOC/Packer.vala index a119bd3..554fe50 100644 --- a/JSDOC/Packer.vala +++ b/JSDOC/Packer.vala @@ -197,15 +197,18 @@ namespace JSDOC foreach(var file in this.files) { print("reading %s\n",file ); - if (!File.isFile(file)) { - print("SKIP (is not a file) " + file); + + if (FileUtils.test (file, FileTest.EXISTS) && ! FileUtils.test (file, FileTest.IS_DIR)) { + print("SKIP (is not a file) %s\n ", file); continue; } // debug Target - if (this.debugTarget) { - File.append(this.debugTarget, File.read(file)); + if (this.debugTargetStream !=null) { + string str; + FileUtils.get_contents(file,out str); + this.debugTarget.write(str); } // it's a good idea to check with 0 compression to see if the code can parse!! -- 2.39.2