配置修改 缓存驱动增加目录多级创建

This commit is contained in:
thinkphp
2015-12-21 19:13:33 +08:00
parent ab5f408e50
commit c2ac463a5c
2 changed files with 4 additions and 3 deletions

View File

@@ -40,7 +40,6 @@ class File
if (substr($this->options['path'], -1) != '/') {
$this->options['path'] .= '/';
}
$this->init();
}
@@ -53,10 +52,9 @@ class File
{
// 创建项目缓存目录
if (!is_dir($this->options['path'])) {
if (!mkdir($this->options['path'], 0755)) {
if (!mkdir($this->options['path'], 0755, true)) {
return false;
}
}
}