Executes the FTP command CDUP (change to parent directory). This command is a special case of CFTPClient::ChangeWorkingDirectory (CWD), and is included to simplify the implementation of programs for transferring directory trees between operating systems having different syntaxes for naming the parent directory. @return see return values of CFTPClient::SimpleErrorCheck
| 1286 | /// syntaxes for naming the parent directory. |
| 1287 | /// @return see return values of CFTPClient::SimpleErrorCheck |
| 1288 | int CFTPClient::ChangeToParentDirectory() const |
| 1289 | { |
| 1290 | CReply Reply; |
| 1291 | if( !SendCommand(CCommand::CDUP(), CArg(), Reply) ) |
| 1292 | return FTP_ERROR; |
| 1293 | return SimpleErrorCheck(Reply); |
| 1294 | } |
| 1295 | |
| 1296 | /// Executes the FTP command QUIT. |
| 1297 | /// This command terminates a USER and if file transfer is not in progress, |