protected function directoryExists($directory, Node $node, CMS $application, Deployment $deployment, array $options = [])
    {
        $this->determineWorkingDirectoryAndTargetNode($node, $application, $deployment, $options);
        $directory = Files::concatenatePaths([$this->workingDirectory, $directory]);
        return $this->shell->executeOrSimulate('test -d ' . escapeshellarg($directory), $this->targetNode, $deployment, true) === false ? false : true;
    }
protected function directoryExists($directory, Node $node, CMS $application, Deployment $deployment, array $options = [])
    {
        $this->determineWorkingDirectoryAndTargetNode($node, $application, $deployment, $options);
        $directory = Files::concatenatePaths([$this->workingDirectory, $directory]);
        return $this->shell->executeOrSimulate('test -d ' . escapeshellarg($directory), $this->targetNode, $deployment, true) === false ? false : true;
    }
protected function directoryExists ( $ directory , Node $ node , CMS $ application , Deployment $ deployment , array $ options = [ ] ) { $ this -> determineWorkingDirectoryAndTargetNode ( $ node , $ application , $ deployment , $ options ) ; $ directory = Files :: concatenatePaths ( [ $ this -> workingDirectory , $ directory ] ) ; return $ this -> shell -> executeOrSimulate ( 'test -d ' . escapeshellarg ( $ directory ) , $ this -> targetNode , $ deployment , true ) === false ? false : true ; }
Checks if a given directory exists.

@param string $directory
@param Node $node
@param CMS $application
@param Deployment $deployment
@param array $options
@return bool
Checks if a given directory exists .