This commit is contained in:
caoyanyi
2022-03-23 09:50:06 +08:00
parent 290ff3677c
commit 39fbdad08a
+1 -1
View File
@@ -1260,7 +1260,7 @@ class upgradeModel extends model
if(file_exists($fullPath))
{
$isDir = is_dir($fullPath);
if(($isDir and !$zfile->removeDir($fullPath)) or
if(!is_writable($fullPath) or ($isDir and !$zfile->removeDir($fullPath)) or
(!$isDir and !$zfile->removeFile($fullPath)))
{
$result[] = 'rm -f ' . ($isDir ? '-r ' : '') . $fullPath;