///////////////////////////////////////////////////////
| 116 | |
| 117 | //////////////////////////////////////////////////////////// |
| 118 | Ftp::DirectoryResponse::DirectoryResponse(const Ftp::Response& response) : Ftp::Response(response) |
| 119 | { |
| 120 | if (isOk()) |
| 121 | { |
| 122 | // Extract the directory from the server response |
| 123 | const std::string::size_type begin = getMessage().find('"', 0); |
| 124 | const std::string::size_type end = getMessage().find('"', begin + 1); |
| 125 | m_directory = getMessage().substr(begin + 1, end - begin - 1); |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | |
| 130 | //////////////////////////////////////////////////////////// |