mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
@ -455,7 +455,8 @@ class BaseFileHelper
|
||||
return true;
|
||||
}
|
||||
$parentDir = dirname($path);
|
||||
if ($recursive && !is_dir($parentDir)) {
|
||||
// recurse if parent dir does not exist and we are not at the root of the file system.
|
||||
if ($recursive && !is_dir($parentDir) && $parentDir !== $path) {
|
||||
static::createDirectory($parentDir, $mode, true);
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user