},
/**
* remove
+ * Delete a file.
* @arg path {String} File to remove
*
*
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);