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

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