From 24b2b773ae9c306641692150f163df4dd6152b35 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sun, 8 Nov 2020 16:51:30 +0100 Subject: array2dir: Create parent directories if missing --- ratatoeskr/sys/pluginpackage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ratatoeskr/sys/pluginpackage.php b/ratatoeskr/sys/pluginpackage.php index 3e2c5f9..3e34ca7 100644 --- a/ratatoeskr/sys/pluginpackage.php +++ b/ratatoeskr/sys/pluginpackage.php @@ -50,7 +50,7 @@ function dir2array($dir) function array2dir($a, $dir) { if (!is_dir($dir)) { - mkdir($dir); + mkdir($dir, 0777, true); } foreach ($a as $k => $v) { -- cgit v1.2.3-70-g09d2