From 13f3dd289c807fdba8f7d07ed1d589376ead92ec Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 13 Aug 2021 16:14:09 +0300 Subject: [PATCH] feat(flextype): use `ensureExists` for primary configs --- src/flextype/flextype.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flextype/flextype.php b/src/flextype/flextype.php index 7591374e..7d7c3950 100644 --- a/src/flextype/flextype.php +++ b/src/flextype/flextype.php @@ -102,8 +102,8 @@ $customFlextypeSettingsFilePath = PATH['project'] . '/config/flextype/settings. $preflightFlextypePath = PATH['tmp'] . '/config/flextype/'; $customFlextypeSettingsPath = PATH['project'] . '/config/flextype/'; -! filesystem()->directory($preflightFlextypePath)->exists() and filesystem()->directory($preflightFlextypePath)->create(0755, true); -! filesystem()->directory($customFlextypeSettingsPath)->exists() and filesystem()->directory($customFlextypeSettingsPath)->create(0755, true); +filesystem()->directory($preflightFlextypePath)->ensureExists(0755, true); +filesystem()->directory($customFlextypeSettingsPath)->ensureExists(0755, true); $f1 = file_exists($flextypeManifestFilePath) ? filemtime($flextypeManifestFilePath) : ''; $f2 = file_exists($defaultFlextypeSettingsFilePath) ? filemtime($defaultFlextypeSettingsFilePath) : '';