To speed up the install and upgrade schema only copy files that don't exist in the destination directory.

This commit is contained in:
Mark Crane
2013-09-28 21:06:16 +00:00
parent 67d7032d7e
commit 0fc11ed284

View File

@@ -50,7 +50,9 @@ include "root.php";
while(false !== ($file = readdir($dir))) {
if (($file != '.') && ($file != '..')) {
if (is_dir($src.'/'.$file)) {
$this->recursive_copy($src.'/'.$file, $dst.'/'.$file);
if (!file_exists($dst.'/'.$file)) {
$this->recursive_copy($src.'/'.$file, $dst.'/'.$file);
}
}
else {
//show debug info