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

Method FileSize

deps/FtpClient/FTPClient.cpp:1823–1830  ·  view source on GitHub ↗

Executes the FTP command SIZE Return size of file. SIZE is not specified in RFC 959. @param[in] Pathname of a file. @param[out] Size of the file specified in pathname. @return see return values of CFTPClient::SimpleErrorCheck

Source from the content-addressed store, hash-verified

1821/// @param[out] Size of the file specified in pathname.
1822/// @return see return values of CFTPClient::SimpleErrorCheck
1823int CFTPClient::FileSize(const tstring& strPath, long& lSize) const
1824{
1825 CReply Reply;
1826 if( !SendCommand(CCommand::SIZE(), strPath, Reply) )
1827 return FTP_ERROR;
1828 lSize = CCnv::TStringToLong(Reply.Value().substr(4).c_str());
1829 return SimpleErrorCheck(Reply);
1830}
1831
1832/// Executes the FTP command MDTM
1833/// Show last modification time of file.

Callers 1

do_download_fileFunction · 0.80

Calls 3

c_strMethod · 0.80
substrMethod · 0.80
ValueMethod · 0.80

Tested by

no test coverage detected