forked from blallo/rss-bridge
[FileCache] Implement recursive directory creation
This commit is contained in:
parent
ad825aa88a
commit
5f1c4e1c55
1 changed files with 2 additions and 3 deletions
|
@ -73,10 +73,9 @@ class FileCache extends CacheAbstract {
|
|||
protected function getCachePath(){
|
||||
$cacheDir = __DIR__ . '/../cache/'; // FIXME : configuration ?
|
||||
|
||||
// FIXME : implement recursive dir creation
|
||||
if(!is_dir($cacheDir)){
|
||||
mkdir($cacheDir,0755);
|
||||
chmod($cacheDir,0755);
|
||||
mkdir($cacheDir, 0755, true);
|
||||
chmod($cacheDir, 0755);
|
||||
}
|
||||
|
||||
return $cacheDir;
|
||||
|
|
Loading…
Reference in a new issue