File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ function getAllFileInFolder($path)
426426 }
427427}
428428if (!function_exists ('init_basic_codeigniter_storage_directory ' )) {
429- function init_basic_codeigniter_storage_directory ()
429+ function init_basic_codeigniter_storage_directory ($ customizes = array () )
430430 {
431431 if (is_cli () && (defined ('APPPATH ' ) && defined ('FCPATH ' ))) {
432432 echo "Initialize storage directory " . PHP_EOL ;
@@ -449,6 +449,12 @@ function init_basic_codeigniter_storage_directory()
449449 makeNewFolder (FCPATH . 'storage/logs-vendor ' );
450450 file_create (FCPATH . 'storage/logs/accessDenied.log ' );
451451
452+ if (!empty ($ customizes ) && is_array ($ customizes )) {
453+ foreach ($ customizes as $ folder ) {
454+ makeNewFolder ($ folder );
455+ }
456+ }
457+
452458 echo "Storage directory initialized successfully " . PHP_EOL ;
453459 }
454460 exit ();
You can’t perform that action at this time.
0 commit comments