We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1dce36 commit 00e3c4aCopy full SHA for 00e3c4a
src/PatternLab/InstallerUtil.php
@@ -14,6 +14,7 @@
14
15
use \PatternLab\Config;
16
use \PatternLab\Console;
17
+use \PatternLab\FileUtil;
18
use \PatternLab\Timer;
19
use \Symfony\Component\Filesystem\Filesystem;
20
use \Symfony\Component\Filesystem\Exception\IOExceptionInterface;
@@ -62,7 +63,13 @@ protected static function init() {
62
63
// make sure the source dir is set-up
64
$sourceDir = Config::getOption("sourceDir");
65
if (!is_dir($sourceDir)) {
- mkdir($sourceDir);
66
+ FileUtil::makeDir($sourceDir);
67
+ }
68
+
69
+ // make sure the public dir is set-up
70
+ $publicDir = Config::getOption("publicDir");
71
+ if (!is_dir($publicDir)) {
72
+ FileUtil::makeDir($publicDir);
73
}
74
75
Dispatcher::init();
0 commit comments