protected function processPath($path, $force)
    {
        $existsPath = $this->fs->exists($path);
        $isEmpty = $this->isEmptyDir($path);

        if ($existsPath === true && $force === false && $isEmpty === false) {
            throw new \RuntimeException(sprintf('Path "%s" exists and is not empty.', $path));
        }

        $existsPath ? $this->clearDir($path) : $this->fs->mkdir($path);
    }
protected function processPath($path, $force)
    {
        $existsPath = $this->fs->exists($path);
        $isEmpty = $this->isEmptyDir($path);

        if ($existsPath === true && $force === false && $isEmpty === false) {
            throw new \RuntimeException(sprintf('Path "%s" exists and is not empty.', $path));
        }

        $existsPath ? $this->clearDir($path) : $this->fs->mkdir($path);
    }
protected function processPath ( $ path , $ force ) { $ existsPath = $ this -> fs -> exists ( $ path ) ; $ isEmpty = $ this -> isEmptyDir ( $ path ) ; if ( $ existsPath === true && $ force === false && $ isEmpty === false ) { throw new \ RuntimeException ( sprintf ( 'Path "%s" exists and is not empty.' , $ path ) ) ; } $ existsPath ? $ this -> clearDir ( $ path ) : $ this -> fs -> mkdir ( $ path ) ; }
Process the path of the future site.

@param string $path
@param bool   $force

@throws RuntimeException If the argument force is set to true and the
path exists and is not empty
Process the path of the future site .