mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 14:28:27 +08:00
more unit tests for helpers/FileHelper::findFiles using new wildcard exceptions matching
This commit is contained in:
@ -259,6 +259,7 @@ class BaseFileHelper
|
||||
if (!is_dir($dir)) {
|
||||
throw new InvalidParamException('The dir argument must be a directory.');
|
||||
}
|
||||
$dir = rtrim($dir, DIRECTORY_SEPARATOR);
|
||||
if (!isset($options['basePath'])) {
|
||||
$options['basePath'] = realpath($dir);
|
||||
// this should also be done only once
|
||||
|
Reference in New Issue
Block a user