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
| 1583 | /// dependent file group designator. |
| 1584 | /// @return see return values of CFTPClient::SimpleErrorCheck |
| 1585 | int 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 |