Example #1
0
 public override void MakeFolder(string cpath)
 {
     try
     {
         lock (ftpcLock)
         {
             _ftpc.CreateDirectory(cpath);
         }
     }
     catch
     {
         if (!Exists(cpath))
         {
             throw;
         }
     }
 }
Example #2
0
 public void MakeFolder(string cpath)
 {
     try
     {
         if (FTP)
         {
             _ftpc.CreateDirectory(cpath);
         }
         else
         {
             _sftpc.CreateDirectory(cpath);
         }
     }
     catch
     {
         if (!Exists(cpath))
         {
             throw;
         }
     }
 }