This commit is contained in:
liyuchun
2022-03-16 15:38:33 +08:00
parent c28399fe0e
commit 0664eaef01
+2 -1
View File
@@ -452,7 +452,8 @@ class extensionModel extends model
}
else
{
if(!@mkdir($path, 0755, true))
$parentDir = mb_substr($path, 0, strripos($path, '/'));
if(!is_writable($parentDir) or !@mkdir($path, 0777, true))
{
$return->errors .= sprintf($this->lang->extension->errorTargetPathNotExists, $path) . '<br />';
$return->mkdirCommands .= "mkdir -p $path<br />";