Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

Commit 6d88d25

Browse files
committed
Creating all missing directories
1 parent fd2e204 commit 6d88d25

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Includes/File.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,9 @@ public static function checkIfFileExistsAndDeleteContent($filename, $fileExtensi
8484
*/
8585
public static function createMissingDirectory($filename)
8686
{
87-
// TODO: Create few dir ie. bla/bla2/bla3/fff.dat
8887
if (!is_dir(dirname($filename))) {
8988
Text::debug('Creating missing directory: '.dirname($filename));
90-
mkdir(dirname($filename));
89+
mkdir(dirname($filename), 0777, true);
9190
}
9291
}
9392

0 commit comments

Comments
 (0)