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:
parent
ad825aa88a
commit
5f1c4e1c55
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user