private void createdir()
{
string uri = "ftp://127.0.0.1/test/;
if (!Directory.Exists(uri))
{
FtpWebRequest frequest = (FtpWebRequest)FtpWebRequest.Create(new Uri(uri));
frequest.Credentials = new NetworkCredential(user, pwd);
frequest.Method = WebRequestMethods.Ftp.MakeDirectory;
try
{
FtpWebResponse response = frequest.GetResponse() as FtpWebResponse;
}
catch { }
}
}