Skip to content

Commit

Permalink
Work around errors in cache stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 20, 2013
1 parent 4209830 commit 7bf5871
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/FileStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected function createCacheDirectory($path)
{
try
{
$this->files->makeDirectory(dirname($path), 0777, true);
$this->files->makeDirectory(dirname($path), 0777, true, true);
}
catch (\Exception $e)
{
Expand Down
12 changes: 10 additions & 2 deletions src/Illuminate/Filesystem/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,19 @@ public function directories($directory)
* @param string $path
* @param int $mode
* @param bool $recursive
* @param bool $force
* @return bool
*/
public function makeDirectory($path, $mode = 0777, $recursive = false)
public function makeDirectory($path, $mode = 0777, $recursive = false, $force = false)
{
return mkdir($path, $mode, $recursive);
if ($force)
{
return @mkdir($path, $mode, $recursive);
}
else
{
return mkdir($path, $mode, $recursive);
}
}

/**
Expand Down

0 comments on commit 7bf5871

Please sign in to comment.