在默认的文件夹下面创建目录实例

void CreateDir()
{
sf::IpAddress address = "127.0.0.1";
sf::Ftp server;
sf::Ftp::Response connectResponse = server.connect(address);
if (!connectResponse.isOk())
{
//连接失败
} // Ask for user name and password
std::string user = "test", password = "5482";
// Login to the server
sf::Ftp::Response loginResponse = server.login(user, password);
if (!loginResponse.isOk())
{
//登录失败
} //创建文件夹
sf::Ftp::Response response = server.createDirectory("files");
if (!response.isOk())
{
//创建文件夹失败
} server.disconnect();
}