From: Alan Knowles Date: Mon, 12 May 2014 04:21:33 +0000 (+0800) Subject: Monitor.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=f4b72d166841698aa5260061825143bab044906b;p=gitlive Monitor.js --- diff --git a/Monitor.js b/Monitor.js index 7fd27df5..3e8760e2 100644 --- a/Monitor.js +++ b/Monitor.js @@ -106,7 +106,7 @@ Monitor.prototype = { } - var f = File.new_for_path(path); + var f = Gio.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,