From 733c61418ae349918e8e7994bddcdada493c5c20 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 6 Mar 2017 19:16:38 +0100 Subject: [PATCH] Fix log file creation --- DataStorage/Cache/FileCache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataStorage/Cache/FileCache.php b/DataStorage/Cache/FileCache.php index b1d518586..cd5327ccf 100644 --- a/DataStorage/Cache/FileCache.php +++ b/DataStorage/Cache/FileCache.php @@ -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 */ public function __construct(string $path) { - if (!File::exists($path)) { + if (!Directory::exists(File::parent($path))) { Directory::create($path); }