mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-13 15:18:41 +00:00
Fix log file creation
This commit is contained in:
parent
6ce5a7b29f
commit
733c61418a
|
|
@ -80,14 +80,14 @@ class FileCache implements CacheInterface
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param array $config Cache config
|
* @param string $path Cache path
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public function __construct(string $path)
|
public function __construct(string $path)
|
||||||
{
|
{
|
||||||
if (!File::exists($path)) {
|
if (!Directory::exists(File::parent($path))) {
|
||||||
Directory::create($path);
|
Directory::create($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user