src/Generator.php
protected function prepareDirectory()
    {
        if (File::exists($this->docDir) && ! is_writable($this->docDir)) {
            throw new L5SwaggerException('Documentation storage directory is not writable');
        }

        // delete all existing documentation
        if (File::exists($this->docDir)) {
            File::deleteDirectory($this->docDir);
        }

        File::makeDirectory($this->docDir);

        return $this;
    }
protected function prepareDirectory()
    {
        if (File::exists($this->docDir) && ! is_writable($this->docDir)) {
            throw new L5SwaggerException('Documentation storage directory is not writable');
        }

        // delete all existing documentation
        if (File::exists($this->docDir)) {
            File::deleteDirectory($this->docDir);
        }

        File::makeDirectory($this->docDir);

        return $this;
    }
protected function prepareDirectory ( ) { if ( File :: exists ( $ this -> docDir ) && ! is_writable ( $ this -> docDir ) ) { throw new L5SwaggerException ( 'Documentation storage directory is not writable' ) ; } // delete all existing documentation if ( File :: exists ( $ this -> docDir ) ) { File :: deleteDirectory ( $ this -> docDir ) ; } File :: makeDirectory ( $ this -> docDir ) ; return $ this ; }
Check directory structure and permissions.

@return Generator
Check directory structure and permissions .