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();
    }
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();
    }
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 ( ) ; }
Creates the directory structure. Does not overwrite existing
directories.
@return null
Creates the directory structure . Does not overwrite existing directories .