修改File类目录创建权限

This commit is contained in:
thinkphp
2016-07-13 20:52:31 +08:00
parent c1d74107e6
commit af7f588667

View File

@@ -79,7 +79,7 @@ class File extends SplFileObject
return true;
}
if (mkdir($path, 0644, true)) {
if (mkdir($path, 0666, true)) {
return true;
} else {
$this->error = "目录 {$path} 创建失败!";