Skip to content
Browse files

Made mkdir recursive

When using LifetimeFileCache the cache folder is not properly created (because there is a subfolder).
  • Loading branch information...
1 parent 450413b commit 7d23b890151d57fbabac5ae6eb75063c3d640da3 @LouTerrailloune committed Feb 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Cache/FileCache.php
View
2 Cache/FileCache.php
@@ -55,7 +55,7 @@ public function setCacheDir($cacheDir)
throw new \InvalidArgumentException('The parameter $cacheDir must not be empty.');
}
- if (!is_dir($cacheDir) && !mkdir($cacheDir)) {
+ if (!is_dir($cacheDir) && !mkdir($cacheDir, 0777, true)) {
throw new \RuntimeException('Unable to create the directory "'.$cacheDir.'"');
}

0 comments on commit 7d23b89

Please sign in to comment.
Something went wrong with that request. Please try again.