prefixed chmod and rmdir with @ in coderepomodel.php

This commit is contained in:
hyung-hwan 2021-02-13 05:07:51 +00:00
parent 945fb1ca9a
commit bdcb2645fb

View File

@ -44,12 +44,12 @@ class CodeRepoModel extends Model
if ($item == '.' || $item == '..') continue; if ($item == '.' || $item == '..') continue;
if (self::_deleteDirectory($dir . "/" . $item) === FALSE) if (self::_deleteDirectory($dir . "/" . $item) === FALSE)
{ {
chmod($dir . "/" . $item, 0777); @chmod($dir . "/" . $item, 0777);
if (self::_deleteDirectory($dir . "/" . $item) === FALSE) return FALSE; if (self::_deleteDirectory($dir . "/" . $item) === FALSE) return FALSE;
}; };
} }
return rmdir($dir); return @rmdir($dir);
} }
function deleteDirectory($dir) function deleteDirectory($dir)