mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Updates to fix building.
Reviewed by me.
This commit is contained in:
+7
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user