protected function removePackageFolder($packagePath)
    {
        $this->info('Remove package folder.');

        if (File::exists($packagePath)) {
            if (! File::deleteDirectory($packagePath)) {
                throw new RuntimeException('Cannot remove package folder');
            }

            $this->info('Package folder was successfully removed.');
        } else {
            $this->info('Package folder does not exists. Skipping.');
        }
    }
protected function removePackageFolder($packagePath)
    {
        $this->info('Remove package folder.');

        if (File::exists($packagePath)) {
            if (! File::deleteDirectory($packagePath)) {
                throw new RuntimeException('Cannot remove package folder');
            }

            $this->info('Package folder was successfully removed.');
        } else {
            $this->info('Package folder does not exists. Skipping.');
        }
    }
protected function removePackageFolder ( $ packagePath ) { $ this -> info ( 'Remove package folder.' ) ; if ( File :: exists ( $ packagePath ) ) { if ( ! File :: deleteDirectory ( $ packagePath ) ) { throw new RuntimeException ( 'Cannot remove package folder' ) ; } $ this -> info ( 'Package folder was successfully removed.' ) ; } else { $ this -> info ( 'Package folder does not exists. Skipping.' ) ; } }
Remove package folder.

@param $packagePath

@throws RuntimeException
Remove package folder .