MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / UploadFile

Method UploadFile

deps/FtpClient/FTPClient.cpp:750–760  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

748/// @param[in] repType Representation Type (see documentation of CRepresentation)
749/// @param[in] fPasv see documentation of CFTPClient::Passive
750bool 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).

Callers

nothing calls this directly

Calls 8

OpenMethod · 0.80
OnPreSendFileMethod · 0.80
OnPostSendFileMethod · 0.80
GetLocalStreamSizeMethod · 0.45
SetLocalStreamOffsetMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
GetLocalStreamNameMethod · 0.45

Tested by

no test coverage detected