1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-01-17 14:18:35 +01:00

[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(){
$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;