application/Espo/Core/Upgrades/Actions/Base.php
protected function unzipArchive($packagePath = null)
    {
        $packagePath = isset($packagePath) ? $packagePath : $this->getPackagePath();
        $packageArchivePath = $this->getPackagePath(true);

        if (!file_exists($packageArchivePath)) {
            throw new Error('Package Archive doesn\'t exist.');
        }

        $res = $this->getZipUtil()->unzip($packageArchivePath, $packagePath);
        if ($res === false) {
            throw new Error('Unnable to unzip the file - '.$packagePath.'.');
        }
    }
protected function unzipArchive($packagePath = null)
    {
        $packagePath = isset($packagePath) ? $packagePath : $this->getPackagePath();
        $packageArchivePath = $this->getPackagePath(true);

        if (!file_exists($packageArchivePath)) {
            throw new Error('Package Archive doesn\'t exist.');
        }

        $res = $this->getZipUtil()->unzip($packageArchivePath, $packagePath);
        if ($res === false) {
            throw new Error('Unnable to unzip the file - '.$packagePath.'.');
        }
    }
protected function unzipArchive ( $ packagePath = null ) { $ packagePath = isset ( $ packagePath ) ? $ packagePath : $ this -> getPackagePath ( ) ; $ packageArchivePath = $ this -> getPackagePath ( true ) ; if ( ! file_exists ( $ packageArchivePath ) ) { throw new Error ( 'Package Archive doesn\'t exist.' ) ; } $ res = $ this -> getZipUtil ( ) -> unzip ( $ packageArchivePath , $ packagePath ) ; if ( $ res === false ) { throw new Error ( 'Unnable to unzip the file - ' . $ packagePath . '.' ) ; } }
Unzip a package archieve

@return void
Unzip a package archieve