Updates to fix building.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2009-10-08 14:59:10 -04:00
parent 99697926d9
commit 7864a9fa8e
2 changed files with 20 additions and 4 deletions
+7 -2
View File
@@ -91,8 +91,13 @@ global.rm_rf = function(/*String*/ aFilename)
global.cp_r = function(/*String*/ from, /*String*/ to)
{
rm_rf(to);
FILE.copyTree(from, to);
if (FILE.exists(to))
rm_rf(to);
if (FILE.isDirectory(from))
FILE.copyTree(from, to);
else
FILE.copy(from, to);
}
global.cp = function(/*String*/ from, /*String*/ to)