Permalink
Browse files

Fix error when clearing FileCache.

I made a mistake in a previous commit that did not account for dir()
returning directory names.
  • Loading branch information...
1 parent 1b610a8 commit b999b4d9ae90cc187965dd1ca442585a5138127e @markstory markstory committed Aug 3, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Cake/Cache/Engine/FileEngine.php
@@ -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) {

0 comments on commit b999b4d

Please sign in to comment.