Commit 9bc8c330 by resurtm
parent 1327d8ad
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment