Esempio n. 1
0
 /// <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);
     }
 }
Esempio n. 2
0
 /// <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);
     }
 }