|
@@ -370,6 +370,7 @@ class PackageClass
|
|
$fileName = $fileInfo['path'];
|
|
$fileName = $fileInfo['path'];
|
|
$targetName = $fileInfo['target'];
|
|
$targetName = $fileInfo['target'];
|
|
$filePath = pathJoin($rootDir,$fileName);
|
|
$filePath = pathJoin($rootDir,$fileName);
|
|
|
|
+ $targetPath = pathJoin($rootDir,$targetName);
|
|
if(! file_exists($filePath) ){
|
|
if(! file_exists($filePath) ){
|
|
logError("failed to copy file, file not exists.",$filePath);
|
|
logError("failed to copy file, file not exists.",$filePath);
|
|
return false;
|
|
return false;
|
|
@@ -377,7 +378,6 @@ class PackageClass
|
|
if(!$fileInfo['override'] && file_exists($targetPath)){
|
|
if(!$fileInfo['override'] && file_exists($targetPath)){
|
|
logInfo("skip copy file, file already exists",$targetPath);
|
|
logInfo("skip copy file, file already exists",$targetPath);
|
|
}
|
|
}
|
|
- $targetPath = pathJoin($rootDir,$targetName);
|
|
|
|
if( filedirCopy($filePath,$targetPath) ){
|
|
if( filedirCopy($filePath,$targetPath) ){
|
|
logInfo("succeeded to copy file",$fileName," -> ",$targetName);
|
|
logInfo("succeeded to copy file",$fileName," -> ",$targetName);
|
|
}
|
|
}
|