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

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