diff --git a/lib/Cake/Cache/Engine/FileEngine.php b/lib/Cake/Cache/Engine/FileEngine.php index 6e5c9b1c3..7906917a3 100644 --- a/lib/Cake/Cache/Engine/FileEngine.php +++ b/lib/Cake/Cache/Engine/FileEngine.php @@ -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) {