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

Method ChangeToParentDirectory

deps/FtpClient/FTPClient.cpp:1288–1294  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1286/// syntaxes for naming the parent directory.
1287/// @return see return values of CFTPClient::SimpleErrorCheck
1288int 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,

Callers

nothing calls this directly

Calls 1

CArgClass · 0.85

Tested by

no test coverage detected