From 769316e83c53bb86db891ed392868251f14d007b Mon Sep 17 00:00:00 2001 From: Sonny Le Date: Mon, 9 Sep 2024 16:52:14 +0700 Subject: [PATCH] Improve CreateFolder Function --- framework/library/astroid/Helper/Media.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/library/astroid/Helper/Media.php b/framework/library/astroid/Helper/Media.php index 31265565..c7ebc2c8 100644 --- a/framework/library/astroid/Helper/Media.php +++ b/framework/library/astroid/Helper/Media.php @@ -311,8 +311,7 @@ public static function createFolder() if (file_exists($dir)) { throw new \Exception("Folder `$name` already exists", 0); } - - mkdir($dir, 0777); + Folder::create($dir); $folder = $name; if ($directory != 'images') {