清空缓存方法删除空目录

This commit is contained in:
thinkphp
2017-02-08 19:02:06 +08:00
parent cc9aa76f31
commit 89ee5379b7

View File

@@ -225,6 +225,7 @@ class File extends Driver
foreach ($files as $path) {
if (is_dir($path)) {
array_map('unlink', glob($path . '/*.php'));
rmdir($path);
} else {
unlink($path);
}