public function openArchive($location)
    {
        $location = str_replace('/', DIRECTORY_SEPARATOR, $location);
        if (($response = $this->archive->open($location, ZipArchive::CREATE)) !== true) {
            throw new \LogicException('Could not open zip archive at:'.$location.', error: '.$response);
        }
    }
public function openArchive($location)
    {
        $location = str_replace('/', DIRECTORY_SEPARATOR, $location);
        if (($response = $this->archive->open($location, ZipArchive::CREATE)) !== true) {
            throw new \LogicException('Could not open zip archive at:'.$location.', error: '.$response);
        }
    }
public function openArchive ( $ location ) { $ location = str_replace ( '/' , DIRECTORY_SEPARATOR , $ location ) ; if ( ( $ response = $ this -> archive -> open ( $ location , ZipArchive :: CREATE ) ) !== true ) { throw new \ LogicException ( 'Could not open zip archive at:' . $ location . ', error: ' . $ response ) ; } }
Open a zip file.

@param $location

@throws \LogicException if it cannot open the archive
Open a zip file .