Executes the FTP command MKD (MAKE DIRECTORY) This command causes the directory specified in the pathname to be created as a directory (if the pathname is absolute) or as a subdirectory of the current working directory (if the pathname is relative). @pararm[in] strDirectory Pathname specifying a directory to be created. @return see return values of CFTPClient::SimpleErrorCheck
| 1598 | /// @pararm[in] strDirectory Pathname specifying a directory to be created. |
| 1599 | /// @return see return values of CFTPClient::SimpleErrorCheck |
| 1600 | int CFTPClient::MakeDirectory(const tstring& strDirectory) const |
| 1601 | { |
| 1602 | ASSERT( !strDirectory.empty() ); |
| 1603 | CReply Reply; |
| 1604 | if( !SendCommand(CCommand::MKD(), strDirectory, Reply) ) |
| 1605 | return FTP_ERROR; |
| 1606 | return SimpleErrorCheck(Reply); |
| 1607 | } |
| 1608 | |
| 1609 | /// Executes the FTP command SITE (SITE PARAMETERS) |
| 1610 | /// This command is used by the server to provide services specific to his |