/// <summary> /// Delete a file /// </summary> /// <param name="cpath">Path to the file</param> public override void Remove(string cpath) { lock (ftpcLock) { var removedSpace = SizeOf(cpath); _sftpc.Delete(cpath); Notifications.ChangeTrayText(MessageType.Size, null, -1 * removedSpace); } }
/// <summary> /// Delete a file /// </summary> /// <param name="cpath">Path to the file</param> public void Remove(string cpath) { if (FTP) { _ftpc.DeleteFile(cpath); } else { _sftpc.Delete(cpath); } }