From 172096052c56d28024b9405414f0a53d4ceb2066 Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 9 Aug 2021 13:10:58 +0300 Subject: [PATCH] feat(entries): ensure entries directory exists --- src/flextype/Entries.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/flextype/Entries.php b/src/flextype/Entries.php index 18388575..34bc6fd1 100755 --- a/src/flextype/Entries.php +++ b/src/flextype/Entries.php @@ -59,6 +59,10 @@ class Entries $this->registry = arrays(); $this->options = $options; $this->initFields(); + + filesystem() + ->directory(PATH['project'] . '/entries/' . $options['directory']) + ->ensureExists(0755, true); } /**