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