MCPcopy Create free account
hub / github.com/SFML/SFML / DirectoryResponse

Method DirectoryResponse

src/SFML/Network/Ftp.cpp:118–127  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

116
117////////////////////////////////////////////////////////////
118Ftp::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////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

findMethod · 0.80

Tested by

no test coverage detected