删除文件夹
This commit is contained in:
parent
f0dcaf98fc
commit
12d95ad29f
@ -200,7 +200,7 @@ class Upgrade extends AdminController
|
|||||||
foreach($delArr as $v){
|
foreach($delArr as $v){
|
||||||
if(is_dir($v)){
|
if(is_dir($v)){
|
||||||
//删除文件夹
|
//删除文件夹
|
||||||
Files::delDirAndFile($v.'/');
|
Files::delDirAndFile($v.'/',true);
|
||||||
} else {
|
} else {
|
||||||
//删除文件
|
//删除文件
|
||||||
if(file_exists($v)){
|
if(file_exists($v)){
|
||||||
|
Loading…
Reference in New Issue
Block a user