修正文件缓存类的clear方法

This commit is contained in:
thinkphp
2016-02-03 20:36:18 +08:00
parent 5c5130b5e9
commit b825cdc117

View File

@@ -187,7 +187,7 @@ class File
*/
public function clear()
{
$path = $this->options['temp'];
$path = $this->options['path'];
if ($dir = opendir($path)) {
while ($file = readdir($dir)) {
$check = is_dir($file);