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
1 changed files with 3 additions and 1 deletions

View File

@ -50,8 +50,10 @@ include "root.php";
while(false !== ($file = readdir($dir))) {
if (($file != '.') && ($file != '..')) {
if (is_dir($src.'/'.$file)) {
if (!file_exists($dst.'/'.$file)) {
$this->recursive_copy($src.'/'.$file, $dst.'/'.$file);
}
}
else {
//show debug info
//echo "copy(".$src."/".$file.", ".$dst."/".$file.");<br />\n";