| 529 | } |
| 530 | |
| 531 | Transfer_Mode FTPProfile::GetFileTransferMode(const TCHAR* file) const { |
| 532 | LPCTSTR suffix = NULL; |
| 533 | |
| 534 | if (m_asciiTypes.size()) { |
| 535 | suffix = PathFindSuffixArray(file, (const TCHAR**)(&m_asciiTypes[0]), static_cast<int>(m_asciiTypes.size()) ); |
| 536 | if (suffix) { |
| 537 | return Mode_ASCII; |
| 538 | } |
| 539 | } |
| 540 | |
| 541 | if (m_binTypes.size()) { |
| 542 | suffix = PathFindSuffixArray(file, (const TCHAR**)(&m_binTypes[0]), static_cast<int>(m_binTypes.size()) ); |
| 543 | if (suffix) { |
| 544 | return Mode_Binary; |
| 545 | } |
| 546 | } |
| 547 | |
| 548 | return m_transferMode; |
| 549 | } |
| 550 | |
| 551 | int FTPProfile::GetCacheExternal(const TCHAR* localfile, char* extbuffer, int extbuffersize) const { |
| 552 | if (!extbuffer || extbuffersize == 0) |
no test coverage detected