JSDOC/Packer.js
[gnome.introspection-doc-generator] / File.js
diff --git a/File.js b/File.js
index 2b74b09..e788e59 100755 (executable)
--- a/File.js
+++ b/File.js
@@ -116,6 +116,7 @@ var File = {
     },
     /**
      * remove 
+     * Delete a file.
      * @arg path {String} File to remove
      * 
      * 
@@ -123,8 +124,8 @@ var File = {
     remove : function (path)
     {
         var f = Gio.file_new_for_path(String(path));
-        return f.delete();
-    }
+        return f['delete']();
+    },
     // copy files recursively from fromDir, silently ignore them if they already exist in toDir
     silentRecursiveCopy : function (fromDir, toDir) {
         var filesToCopy = File.recursiveListing(fromDir);