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