mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 22:30:27 +08:00
This commit is contained in:
@ -289,10 +289,10 @@ class BaseFileHelper
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$path = $dir . DIRECTORY_SEPARATOR . $file;
|
$path = $dir . DIRECTORY_SEPARATOR . $file;
|
||||||
if (is_file($path)) {
|
if (is_dir($path)) {
|
||||||
unlink($path);
|
|
||||||
} else {
|
|
||||||
static::removeDirectory($path, $options);
|
static::removeDirectory($path, $options);
|
||||||
|
} else {
|
||||||
|
unlink($path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir($handle);
|
closedir($handle);
|
||||||
|
Reference in New Issue
Block a user