Skip to content

Commit

Permalink
Improve CreateFolder Function
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Sep 9, 2024
1 parent 3ccdbc6 commit 769316e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions framework/library/astroid/Helper/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 769316e

Please sign in to comment.