| 66 | } |
| 67 | |
| 68 | bool FtpServerBrowser::Probe() |
| 69 | { |
| 70 | curl_easy_setopt(m_curl, CURLOPT_NOBODY, 1L); |
| 71 | |
| 72 | CURLcode ret = curl_easy_perform(m_curl); |
| 73 | curl_easy_setopt(m_curl, CURLOPT_NOBODY, 0L); |
| 74 | curl_easy_setopt(m_curl, CURLOPT_HTTPGET, 1L); |
| 75 | |
| 76 | if (ret != CURLE_OK) |
| 77 | { |
| 78 | return false; |
| 79 | } |
| 80 | |
| 81 | return true; |
| 82 | } |
| 83 | |
| 84 | bool FtpServerBrowser::IsAtRoot(string *current) |
| 85 | { |
nothing calls this directly
no outgoing calls
no test coverage detected