src/JsRender/PlainFile.vala
authorAlan Knowles <alan@roojs.com>
Wed, 27 May 2015 09:12:12 +0000 (17:12 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 27 May 2015 09:12:12 +0000 (17:12 +0800)
src/JsRender/PlainFile.vala

index 232e37b..fb6f526 100644 (file)
@@ -24,6 +24,8 @@ namespace JsRender {
             base( project, path);
             this.xtype = "PlainFile";
             
+            var f = File.new_for_path (path) ;
+            var info = file.query_info ("standard::*", 0);
             
             // fixme...
             this.language = "vala";
@@ -56,20 +58,20 @@ namespace JsRender {
         },
         */
 
-               public   override void   removeFiles() {
-                       if (FileUtils.test(this.path, FileTest.EXISTS)) {
-                               GLib.FileUtils.remove(this.path);
-                       }
-                        
+       public   override void   removeFiles() {
+               if (FileUtils.test(this.path, FileTest.EXISTS)) {
+                       GLib.FileUtils.remove(this.path);
                }
-        
-               public   override void  loadItems() throws GLib.Error // : function(cb, sync) == original was async.
-               {
-                  
-                  GLib.FileUtils.get_contents(this.path, out this.contents);
-                  
-               }
-         
+                
+       }
+    
+       public   override void  loadItems() throws GLib.Error // : function(cb, sync) == original was async.
+       {
+          
+          GLib.FileUtils.get_contents(this.path, out this.contents);
+          
+       }
+     
         
                
         public override string toSourcePreview()