Skip to content

Commit

Permalink
Check if module folder does not exist and create one
Browse files Browse the repository at this point in the history
  • Loading branch information
Arno2005 committed Jul 26, 2024
1 parent 06918e1 commit eb964a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Libraries/Module/ModuleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ function __construct(string $moduleName, string $template, string $demo, $enable

public function writeContents()
{
if (!$this->fs->isDirectory(modules_dir())) {
$this->fs->makeDirectory(modules_dir());
}
$this->copyDirectoryWithTemplates($this->templatePath, $this->modulePath);
}

Expand Down

0 comments on commit eb964a3

Please sign in to comment.