Skip to content

Commit

Permalink
Fix error when clearing FileCache.
Browse files Browse the repository at this point in the history
I made a mistake in a previous commit that did not account for dir()
returning directory names.
  • Loading branch information
markstory committed Aug 3, 2013
1 parent 1b610a8 commit b999b4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Cake/Cache/Engine/FileEngine.php
Expand Up @@ -263,6 +263,9 @@ protected function _clearDirectory($path, $now, $threshold) {
continue;
}
$filePath = $path . $entry;
if (is_dir($filePath)) {
continue;
}
$file = new SplFileObject($path . $entry, 'r');

if ($threshold) {
Expand Down

0 comments on commit b999b4d

Please sign in to comment.