| 238 | } |
| 239 | |
| 240 | int FTPSession::DownloadFileCache(const char * sourcefile) { |
| 241 | if (!m_running) |
| 242 | return -1; |
| 243 | |
| 244 | if (sourcefile == NULL) |
| 245 | return -1; |
| 246 | |
| 247 | TCHAR target[MAX_PATH]{}; |
| 248 | target[0] = 0; |
| 249 | |
| 250 | int res = m_currentProfile->GetCacheLocal(sourcefile, target, MAX_PATH); |
| 251 | if (res != 0) |
| 252 | return res; |
| 253 | |
| 254 | return DownloadFile(sourcefile, target, false, 0); |
| 255 | } |
| 256 | |
| 257 | int FTPSession::DownloadFile(const char * sourcefile, const TCHAR * target, bool targetIsDir, int code) { |
| 258 | if (!m_running) |
no test coverage detected