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