删除文件夹

This commit is contained in:
taoser 2021-11-03 17:54:36 +08:00
parent f0dcaf98fc
commit 12d95ad29f

View File

@ -200,7 +200,7 @@ class Upgrade extends AdminController
foreach($delArr as $v){
if(is_dir($v)){
//删除文件夹
Files::delDirAndFile($v.'/');
Files::delDirAndFile($v.'/',true);
} else {
//删除文件
if(file_exists($v)){