Deployment\FtpServer::isDir PHP Method

isDir() private method

Checks if directory exists.
private isDir ( $dir ) : boolean
return boolean
    private function isDir($dir)
    {
        $current = $this->getDir();
        try {
            $this->ftp('chdir', $dir);
        } catch (FtpException $e) {
        }
        $this->ftp('chdir', $current ?: '/');
        return empty($e);
    }