projects
/
gitlive
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Uncommited changes synced
[gitlive]
/
File.js
diff --git
a/File.js
b/File.js
index
2bab627
..
6f4d03c
100644
(file)
--- a/
File.js
+++ b/
File.js
@@
-65,6
+65,7
@@
var File = {
read : function (path) {
var out = {};
GLib.file_get_contents(path, out, null, null);
read : function (path) {
var out = {};
GLib.file_get_contents(path, out, null, null);
+
return out['value'];
},
return out['value'];
},
@@
-93,8
+94,7
@@
var File = {
file_enum.close(null);
listing.sort();
file_enum.close(null);
listing.sort();
-
- return listing;
+ return listing;
},
mtime : function (path) {
},
mtime : function (path) {
@@
-113,8
+113,8
@@
var File = {
* @returns {String} the resolved path 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));
},
canonical : function (path) {
var f = Gio.file_new_for_path(String(path));