This commit is contained in:
2020-08-31 02:08:57 +08:00
parent 2c2903abfe
commit caa6fec895
+1 -1
View File
@@ -148,7 +148,7 @@ abstract class BaseApplication extends Service
$storage = APP_PATH . $storage . '/'; $storage = APP_PATH . $storage . '/';
} }
if (!is_dir($storage)) { if (!is_dir($storage)) {
mkdir($storage, 777); mkdir($storage);
} }
if (!is_dir($storage) || !is_writeable($storage)) { if (!is_dir($storage) || !is_writeable($storage)) {
throw new InitException("Directory {$storage} does not have write permission"); throw new InitException("Directory {$storage} does not have write permission");