var filesToCopy = File.recursiveListing(fromDir);
var srcPath, destPath, src, dest;
- for (index in filesToCopy) {
+ for (var index in filesToCopy) {
srcPath = File.join(String(fromDir), filesToCopy[index]);
destPath = File.join(String(toDir), filesToCopy[index]);
// a bit of a hack for the fact that Gio.File.copy arguments
// can be nulled, but not according to the GIR file
- return src.copy(dest, Gio.FileCopyFlags.NONE, null, function(_a,_b,_c) {return true;}, true);
+ return src.copy(dest, Gio.FileCopyFlags.NONE);
},
recursiveListing : function (dir) {
-
+
function recursiveListingInternal(prefix, listing, dir) {
var entries = File.list(dir);
var next, fullPath;
return listing;
}
-
+
return recursiveListingInternal('', [], dir);
}
-};
\ No newline at end of file
+};