Create the directories for the files.

@return void
772500
protected function createDirectories()
    {
        if (! is_dir(app_path('Http/Controllers/Teamwork'))) {
            mkdir(app_path('Http/Controllers/Teamwork'), 0755, true);
        }
        if (! is_dir(app_path('Listeners/Teamwork'))) {
            mkdir(app_path('Listeners/Teamwork'), 0755, true);
        }
        if (! is_dir(base_path('resources/views/teamwork'))) {
            mkdir(base_path('resources/views/teamwork'), 0755, true);
        }
        if (! is_dir(base_path('resources/views/teamwork/emails'))) {
            mkdir(base_path('resources/views/teamwork/emails'), 0755, true);
        }
        if (! is_dir(base_path('resources/views/teamwork/members'))) {
            mkdir(base_path('resources/views/teamwork/members'), 0755, true);
        }
    }
33937
protected function initAdminDirectory()
    {
        $this->directory = config('admin.directory');

        if (is_dir($this->directory)) {
            $this->line("<error>{$this->directory} directory already exists !</error> ");

            return;
        }

        $this->makeDir('/');
        $this->line('<info>Admin directory was created:</info> '.str_replace(base_path(), '', $this->directory));

        $this->makeDir('Controllers');

        $this->createHomeController();
        $this->createExampleController();
        //$this->createAuthController();
        //$this->createAdministratorController();

        //$this->createMenuFile();
        $this->createBootstrapFile();
        $this->createRoutesFile();

        //$this->copyLanguageFiles();
    }
180568
protected function createDirectory($directory)
    {
        if (!$this->files->isDirectory($directory)) {
            $this->files->makeDirectory($directory, 0755, true);
        }
    }
1056636
public function makeBaseDirectory()
    {
        $this->path = $this->config->get('tie.root') . '/' . $this->vendor . '/' . $this->package;

        $this->makeDir($this->path);
    }
1010155
protected function createCrontabDirectoryIfNotExists()
    {
        if( ! is_dir($crontabDirectory = pathinfo($this->crontabCommands, PATHINFO_DIRNAME)) )
        {
            Filesystem::createFolder($crontabDirectory);
        }
    }
422647
public function getDirectories() : array
    {
        if(!$this->_isLoaded) {
            $this->load();
        }

        return array_map(function($directory) {
            return new Directory($this->getPath(). DIRECTORY_SEPARATOR .$directory);
        }, $this->_directories);
    }
208163
public function makeDir()
    {
        if(!is_dir(resource_path("views/".$this->group)))
        {
            mkdir(resource_path("views/".$this->group));
        }

        if(!is_dir(resource_path("views/".$this->group."/".$this->module)))
        {
            mkdir(resource_path("views/".$this->group."/".$this->module));
        }
    }
694553
protected function createDirectories()
    {
        if (! is_dir(base_path('resources/views/auth/verify-emails'))) {
            mkdir(base_path('resources/views/auth/verify-emails'), 0755, true);
        }

        if (! is_dir(base_path('resources/views/auth/emails'))) {
            mkdir(base_path('resources/views/auth/emails'), 0755, true);
        }
    }
1107150
private function makeViewDirectory()
    {


        if (file_exists(base_path($this->folderPath)))
        {

            $this->error($this->theModel. ' folder already exists!');

            die();

        }

        mkdir(base_path($this->folderPath));

        return $this;
    }
1350025
protected function generateDataFiles()
    {
        $dir = $this->baseDir . '/Data/' . str_replace('\\', '/', trim($this->config->getNamespace(), '\\ '));

        if (!is_dir($dir . '/Abstracts') && false === mkdir($dir . '/Abstracts', 0755, true)) {
            throw new \RuntimeException('Cannot create directory: ' . $dir . '/Abstracts');
        }

        $this->generateDataFileAbstract($dir . '/Abstracts');
        $this->generateDataFile($dir);
    }
1270236
public function systemDirs()
    {
        $this->mkDir('../Storage');
        $this->mkDir('../Storage/Data');
        $this->mkDir('../Storage/Logs');
        $this->mkDir('../Storage/Session');
        $this->mkDir('../Storage/Backup');
        $this->mkDIr('../Storage/Cache');
    }
1292444
public function createDefaultFolders()
    {
        foreach ($this->config()->default_folders as $class) {
            
            if (!self::find($class)) {
                
                $folder = Injector::inst()->create($class);
                
                $folder->Sort = 0;
                
                $folder->write();
                $folder->copyVersionToStage(Versioned::DRAFT, Versioned::LIVE);
                $folder->flushCache();
                
                DB::alteration_message(sprintf('Creating %s.%s', $class, $folder->Title), 'created');
                
            }
            
        }
    }
1298916
public function createDirectory($dirPath)
    {
      if (! $this->fs->exists($dirPath))
      {
        $this->fs->mkdir($dirPath);
      }
    }
573682
protected function createFolderIfMissing()
    {
        if (!file_exists($this->webPath . '/' . $this->imageFolder)) {
            mkdir($this->webPath . '/' . $this->imageFolder, 0755);
        }
    }
1232352
protected function prepareAndGetDirectory()
    {
        if (! $this->filesystem->isDirectory($this->directory)) {
            $this->filesystem->makeDirectory($this->directory, 0755, true);
        }

        return $this->directory;
    }
1179067
private function storage()
    {
        $this->storage = new Storage($this->config->rootDir . DIRECTORY_SEPARATOR . $this->config->storageDir,
            $this->config->rootDir . DIRECTORY_SEPARATOR . $this->config->imagesDir,
            $this->config->rootDir . DIRECTORY_SEPARATOR . $this->config->filesDir);
    }
467287
protected function createDirectoryStructure()
    {
        $this->output->writeLn("Ensuring correct directory structure.");

        $count = 0;
        foreach ($this->directoryStructure as $dir) {
            $label = $this->tree(++$count >= count($this->directoryStructure));
            if (!is_dir($dir)) {
                if (mkdir($dir)) {
                    $this->output->writeLn($label . $this->ok($dir));
                } else {
                    $this->output->writeLn($label . $this->fail($dir));
                    $this->flagFailing();
                }
            } else {
                $this->output->writeLn($label . $this->skip($dir));
            }
        }

        $this->nl();
    }