Executes the FTP command DELE (DELETE) This command causes the file specified in the pathname to be deleted at the server site. If an extra level of protection is desired (such as the query, "Do you really wish to delete?"), it should be provided by the user-FTP process. @param[in] strFile Pathname of the file to delete. @return see return values of CFTPClient::SimpleErrorCheck
| 1648 | /// @param[in] strFile Pathname of the file to delete. |
| 1649 | /// @return see return values of CFTPClient::SimpleErrorCheck |
| 1650 | int CFTPClient::Delete(const tstring& strFile) const |
| 1651 | { |
| 1652 | ASSERT( !strFile.empty() ); |
| 1653 | CReply Reply; |
| 1654 | if( !SendCommand(CCommand::DELE(), strFile, Reply) ) |
| 1655 | return FTP_ERROR; |
| 1656 | return SimpleErrorCheck(Reply); |
| 1657 | } |
| 1658 | |
| 1659 | /// Executes the FTP command RMD (REMOVE DIRECTORY) |
| 1660 | /// This command causes the directory specified in the pathname to be removed |