Monitor.js
authorAlan Knowles <alan@roojs.com>
Mon, 12 May 2014 02:19:07 +0000 (10:19 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 12 May 2014 02:19:07 +0000 (10:19 +0800)
Monitor.js

index 3e8760e..7fd27df 100644 (file)
@@ -106,7 +106,7 @@ Monitor.prototype = {
         }
        
           
-        var f = Gio.file_new_for_path(path);
+        var f = File.new_for_path(path);
             //var cancel = new Gio.Cancellable ();
         if (depth > 0) {     
 
@@ -125,7 +125,7 @@ Monitor.prototype = {
         //    this.initRepo(path);
         //}
         
-         var file_enum = f.enumerate_children(
+        var file_enum = f.enumerate_children(
             Gio.FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME + ','+ 
             Gio.FILE_ATTRIBUTE_STANDARD_TYPE,
             Gio.FileQueryInfoFlags.NONE,