From 19772c6d9a71f221182ffd09c202eb16be237eac Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 2 May 2022 22:16:01 +0300 Subject: [PATCH] feat(entries): use `ensureExists` for entries dir on init --- src/flextype/core/Entries/Entries.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/flextype/core/Entries/Entries.php b/src/flextype/core/Entries/Entries.php index 54ea3d5a..356fb2ab 100755 --- a/src/flextype/core/Entries/Entries.php +++ b/src/flextype/core/Entries/Entries.php @@ -76,6 +76,8 @@ class Entries */ public function __construct($options = null, $registry = null) { + filesystem()->directory(PATH['project'] . registry()->get('flextype.settings.entries.directory'))->ensureExists(0755, true); + $this->setRegistry($registry); $this->setOptions($options); $this->loadCollectionsEvents();