wxInputStream *wxFTP::GetInputStream(const wxString& path)
{
-#if !wxUSE_URL
- return NULL;
-#else
if ( ( m_currentTransfermode == NONE ) && !SetTransferMode(BINARY) )
return NULL;
return NULL;
}
- wxString tmp_str = wxT("RETR ") + wxURL::ConvertFromURI(path);
+ wxString tmp_str = wxT("RETR ") + wxURI::Unescape(path);
if ( !CheckCommand(tmp_str, '1') )
return NULL;
wxInputFTPStream *in_stream = new wxInputFTPStream(this, sock);
return in_stream;
-#endif
}
wxOutputStream *wxFTP::GetOutputStream(const wxString& path)