mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-13 02:37:38 +01: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