标签:
#include <string>
#include "Poco/AutoPtr.h"
#include "Poco/Net/FTPClientSession.h"
#include "Poco/Net/StreamSocket.h"
using Poco::AutoPtr;
using Poco::Net::FTPClientSession;
using Poco::Net::StreamSocket;
int main()
{
FTPClientSession client;
client.open("192.168.7.254",21,"xprins","xprins");
try{
client.setWorkingDirectory("/lk/lol/nice");
}catch(...)
{
client.setWorkingDirectory("/lk");
client.createDirectory("lol");
client.setWorkingDirectory("/lk/lol");
client.createDirectory("nice");
};
client.close();
return 0;
}
LIBS += -lPocoFoundation -lPocoXML -lPocoNet
标签:
原文地址:http://www.cnblogs.com/L-Arikes/p/4792521.html