diff -Nur src.utf8/engine/sftpcontrolsocket.cpp src/engine/sftpcontrolsocket.cpp
old
|
new
|
|
995 | 995 | |
996 | 996 | int CSftpControlSocket::ChangeDirParseResponse(bool successful, const wxString& reply) |
997 | 997 | { |
998 | | if (!successful || !m_pCurOpData) |
| 998 | if (!m_pCurOpData) |
999 | 999 | { |
1000 | 1000 | ResetOperation(FZ_REPLY_ERROR); |
1001 | 1001 | return FZ_REPLY_ERROR; |
1002 | 1002 | } |
1003 | 1003 | CSftpChangeDirOpData *pData = static_cast<CSftpChangeDirOpData *>(m_pCurOpData); |
| 1004 | if (!successful && pData->opState != cwd_cwd) |
| 1005 | { |
| 1006 | ResetOperation(FZ_REPLY_ERROR); |
| 1007 | return FZ_REPLY_ERROR; |
| 1008 | } |
1004 | 1009 | |
1005 | 1010 | bool error = false; |
1006 | 1011 | switch (pData->opState) |
… |
… |
|
1198 | 1203 | if (download) |
1199 | 1204 | { |
1200 | 1205 | wxString filename = remotePath.FormatFilename(remoteFile); |
| 1206 | // Create local directory |
| 1207 | wxFileName fn(localFile); |
| 1208 | wxFileName::Mkdir(fn.GetPath(), 0777, wxPATH_MKDIR_FULL); |
1201 | 1209 | LogMessage(Status, _("Starting download of %s"), filename.c_str()); |
1202 | 1210 | } |
1203 | 1211 | else |