read : function (path) {
var out = {};
GLib.file_get_contents(path, out, null, null);
+
return out['value'];
},
file_enum.close(null);
listing.sort();
-
- return listing;
+ return listing;
},
mtime : function (path) {
* @returns {String} the resolved path path.
*
*/
- realpath : function (path) {
- return this.canonical(path);
+ realpath : function (path) {
+ return imports.os.realpath(path);
},
canonical : function (path) {
var f = Gio.file_new_for_path(String(path));