File.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 2 Apr 2012 07:42:59 +0000 (15:42 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 2 Apr 2012 07:42:59 +0000 (15:42 +0800)
File.js

diff --git a/File.js b/File.js
index 2bab627..53a4fad 100644 (file)
--- a/File.js
+++ b/File.js
@@ -113,8 +113,8 @@ var File = {
      * @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));