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

Method Delete

deps/FtpClient/FTPClient.cpp:1650–1657  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1648/// @param[in] strFile Pathname of the file to delete.
1649/// @return see return values of CFTPClient::SimpleErrorCheck
1650int 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

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected