Fix log file creation

This commit is contained in:
Dennis Eichhorn 2017-03-06 19:16:38 +01:00
parent 6ce5a7b29f
commit 733c61418a

View File

@ -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);
}