void FTPClientSession::removeDirectory(const std::string& path) { std::string response; int status = sendCommand("RMD", path, response); if (!isPositiveCompletion(status)) throw FTPException(std::string("Cannot remove directory ") + path, response, status); }
void FTPClientSession::setWorkingDirectory(const std::string& path) { std::string response; int status = sendCommand("CWD", path, response); if (!isPositiveCompletion(status)) throw FTPException("Cannot change directory", response, status); }
void FTPClientSession::cdup() { std::string response; int status = sendCommand("CDUP", response); if (!isPositiveCompletion(status)) throw FTPException("Cannot change directory", response, status); }
void FTPClientSession::remove(const std::string& path) { std::string response; int status = sendCommand("DELE", path, response); if (!isPositiveCompletion(status)) throw FTPException(std::string("Cannot remove " + path), response); }