1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 13:46:42 +02:00

feat(flextype): use ensureExists for primary configs

This commit is contained in:
Awilum
2021-08-13 16:14:09 +03:00
parent 2e55788966
commit 13f3dd289c

View File

@@ -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) : '';