1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-11 23:54:06 +02:00

feat(preflight): use Atomastic Filesystem #478

This commit is contained in:
Awilum
2020-10-30 16:33:32 +03:00
parent 39c470f5d4
commit 92430358bf

View File

@@ -10,8 +10,8 @@ $custom_flextype_settings_file_path = PATH['project'] . '/config/flextype/setti
$preflight_flextype_path = PATH['tmp'] . '/preflight/flextype/';
$custom_flextype_settings_path = PATH['project'] . '/config/flextype/';
! filesystem()->file($preflight_flextype_path)->exists() and filesystem()->directory($preflight_flextype_path)->create();
! filesystem()->file($custom_flextype_settings_path)->exists() and filesystem()->directory($custom_flextype_settings_path)->create();
! filesystem()->file($preflight_flextype_path)->exists() and filesystem()->directory($preflight_flextype_path)->create(0755, true);
! filesystem()->file($custom_flextype_settings_path)->exists() and filesystem()->directory($custom_flextype_settings_path)->create(0755, true);
$f1 = file_exists($flextype_manifest_file_path) ? filemtime($flextype_manifest_file_path) : '';
$f2 = file_exists($default_flextype_settings_file_path) ? filemtime($default_flextype_settings_file_path) : '';