public function execute()
    {
        $build = $this->phpci->buildPath;

        if ($this->directory == $build || empty($this->directory)) {
            return true;
        }
        if (is_dir($this->directory)) {
            $cmd = 'rm -Rf "%s"';
            if (IS_WIN) {
                $cmd = 'rmdir /S /Q "%s"';
            }
            return $this->phpci->executeCommand($cmd, $this->directory);
        }
        return true;
    }
public function execute()
    {
        $build = $this->phpci->buildPath;

        if ($this->directory == $build || empty($this->directory)) {
            return true;
        }
        if (is_dir($this->directory)) {
            $cmd = 'rm -Rf "%s"';
            if (IS_WIN) {
                $cmd = 'rmdir /S /Q "%s"';
            }
            return $this->phpci->executeCommand($cmd, $this->directory);
        }
        return true;
    }
public function execute ( ) { $ build = $ this -> phpci -> buildPath ; if ( $ this -> directory == $ build || empty ( $ this -> directory ) ) { return true ; } if ( is_dir ( $ this -> directory ) ) { $ cmd = 'rm -Rf "%s"' ; if ( IS_WIN ) { $ cmd = 'rmdir /S /Q "%s"' ; } return $ this -> phpci -> executeCommand ( $ cmd , $ this -> directory ) ; } return true ; }
Wipes a directory's contents
Wipes a directory s contents