Exemplo n.º 1
0
 public void CreateNonExistingSubFolderTest()
 {
     var ftpesTestHost = GetTestHost("ftpes");
     using (var ftpClient = new FtpClient(ftpesTestHost.Uri, ftpesTestHost.Credential))
     {
         var parent = "/tmp/" + Guid.NewGuid().ToString("N");
         var child = parent + "/" + Guid.NewGuid().ToString("N");
         var reply = ftpClient.SendSingleCommand("MKD", child);
         Assert.AreEqual(550, reply.Code.Code);
         ftpClient.SendSingleCommand("RMD", parent);
     }
 }