mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-09 08:47:34 +01:00
Fix yii\helpers\FileHelper::copyDirectory() pattern not working
This commit is contained in:
@@ -209,6 +209,9 @@ class BaseFileHelper
|
||||
if ($handle === false) {
|
||||
throw new InvalidParamException('Unable to open directory: ' . $src);
|
||||
}
|
||||
if (!isset($options['basePath'])) {
|
||||
$options['basePath'] = realpath($src);
|
||||
}
|
||||
while (($file = readdir($handle)) !== false) {
|
||||
if ($file === '.' || $file === '..') {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user