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
| 1821 | /// @param[out] Size of the file specified in pathname. |
| 1822 | /// @return see return values of CFTPClient::SimpleErrorCheck |
| 1823 | int 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. |
no test coverage detected