protected function _rollbackCopyPackage()
    {
        if (!empty($this->_plugin['name'])) {
            $destinationPath = normalizePath(ROOT . "/plugins/{$this->_plugin['name']}/");
            if (is_dir($destinationPath) && is_writable($destinationPath)) {
                $dst = new Folder($destinationPath);
                $dst->delete();
            }
        }
    }
protected function _rollbackCopyPackage()
    {
        if (!empty($this->_plugin['name'])) {
            $destinationPath = normalizePath(ROOT . "/plugins/{$this->_plugin['name']}/");
            if (is_dir($destinationPath) && is_writable($destinationPath)) {
                $dst = new Folder($destinationPath);
                $dst->delete();
            }
        }
    }
protected function _rollbackCopyPackage ( ) { if ( ! empty ( $ this -> _plugin [ 'name' ] ) ) { $ destinationPath = normalizePath ( ROOT . "/plugins/{$this->_plugin['name']}/" ) ; if ( is_dir ( $ destinationPath ) && is_writable ( $ destinationPath ) ) { $ dst = new Folder ( $ destinationPath ) ; $ dst -> delete ( ) ; } } }
Deletes the directory that was copied to its final destination.

@return void
Deletes the directory that was copied to its final destination .