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

Method ChangeWorkingDirectory

deps/FtpClient/FTPClient.cpp:1585–1592  ·  view source on GitHub ↗

Executes the FTP command CWD (CHANGE WORKING DIRECTORY) This command allows the user to work with a different directory or dataset for file storage or retrieval without altering his login or accounting information. Transfer parameters are similarly unchanged. @param[in] strDirectory Pathname specifying a directory or other system dependent file group designator. @return see return values of CFTPCl

Source from the content-addressed store, hash-verified

1583/// dependent file group designator.
1584/// @return see return values of CFTPClient::SimpleErrorCheck
1585int CFTPClient::ChangeWorkingDirectory(const tstring& strDirectory) const
1586{
1587 ASSERT( !strDirectory.empty() );
1588 CReply Reply;
1589 if( !SendCommand(CCommand::CWD(), strDirectory, Reply) )
1590 return FTP_ERROR;
1591 return SimpleErrorCheck(Reply);
1592}
1593
1594/// Executes the FTP command MKD (MAKE DIRECTORY)
1595/// This command causes the directory specified in the pathname to be created

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected