protected function wipeExistingDirectory()
    {
        if ($this->wipe === true && $this->directory != '/' && is_dir($this->directory)) {
            $cmd = 'rm -Rf "%s*"';
            $success = $this->phpci->executeCommand($cmd, $this->directory);

            if (!$success) {
                throw new \Exception(Lang::get('failed_to_wipe', $this->directory));
            }
        }
    }
protected function wipeExistingDirectory()
    {
        if ($this->wipe === true && $this->directory != '/' && is_dir($this->directory)) {
            $cmd = 'rm -Rf "%s*"';
            $success = $this->phpci->executeCommand($cmd, $this->directory);

            if (!$success) {
                throw new \Exception(Lang::get('failed_to_wipe', $this->directory));
            }
        }
    }
protected function wipeExistingDirectory ( ) { if ( $ this -> wipe === true && $ this -> directory != '/' && is_dir ( $ this -> directory ) ) { $ cmd = 'rm -Rf "%s*"' ; $ success = $ this -> phpci -> executeCommand ( $ cmd , $ this -> directory ) ; if ( ! $ success ) { throw new \ Exception ( Lang :: get ( 'failed_to_wipe' , $ this -> directory ) ) ; } } }
Wipe the destination directory if it already exists.
@throws \Exception
Wipe the destination directory if it already exists .