1
0
Fork 0
forked from blallo/rss-bridge

[FileCache] Implement recursive directory creation

This commit is contained in:
logmanoriginal 2016-10-07 23:20:32 +02:00
parent ad825aa88a
commit 5f1c4e1c55

View file

@ -73,10 +73,9 @@ class FileCache extends CacheAbstract {
protected function getCachePath(){ protected function getCachePath(){
$cacheDir = __DIR__ . '/../cache/'; // FIXME : configuration ? $cacheDir = __DIR__ . '/../cache/'; // FIXME : configuration ?
// FIXME : implement recursive dir creation
if(!is_dir($cacheDir)){ if(!is_dir($cacheDir)){
mkdir($cacheDir,0755); mkdir($cacheDir, 0755, true);
chmod($cacheDir,0755); chmod($cacheDir, 0755);
} }
return $cacheDir; return $cacheDir;