Puts a file on the FTP server. Uses C functions for file access (very fast). @param[in] strLocalFile Filename of the the local sourcefile which to put on the FTP server. @param[in] strRemoteFile Filename of the target file on the FTP server. @param[in] fStoreUnique if true, the FTP command STOU is used for saving else the FTP command STOR is used. @param[in] repType Representation Type (see docume
| 748 | /// @param[in] repType Representation Type (see documentation of CRepresentation) |
| 749 | /// @param[in] fPasv see documentation of CFTPClient::Passive |
| 750 | bool CFTPClient::UploadFile(const tstring& strLocalFile, const tstring& strRemoteFile, bool fStoreUnique, const CRepresentation& repType, bool fPasv) const |
| 751 | { |
| 752 | CFile file; |
| 753 | if( !file.Open(strLocalFile, _T("rb")) ) |
| 754 | { |
| 755 | ReportError(CError::GetErrorDescription(), CCnv::ConvertToTString(__FILE__), __LINE__); |
| 756 | return false; |
| 757 | } |
| 758 | |
| 759 | return UploadFile(file, strRemoteFile, fStoreUnique, repType, fPasv); |
| 760 | } |
| 761 | |
| 762 | /// Puts a file on the FTP server. |
| 763 | /// Uses C functions for file access (very fast). |
nothing calls this directly
no test coverage detected