Fix error when clearing FileCache.

I made a mistake in a previous commit that did not account for dir()
returning directory names.
This commit is contained in:
mark_story 2013-08-02 23:32:17 -04:00
parent 1b610a8d62
commit b999b4d9ae

View file

@ -263,6 +263,9 @@ class FileEngine extends CacheEngine {
continue;
}
$filePath = $path . $entry;
if (is_dir($filePath)) {
continue;
}
$file = new SplFileObject($path . $entry, 'r');
if ($threshold) {