public void DeleteFile(string path) { try { File.Delete(path); DBManager.DeleteQuarantine(path); } catch (Exception e) { } }
public void MoveBackQuarantine(string path) { try { using (var stream = File.Open(path, FileMode.Open)) { stream.Position = 0; stream.WriteByte(0x4d); stream.Close(); } DBManager.DeleteQuarantine(path); } catch (Exception e) {} }
public void DeleteQuarantine(string path) { DBManager.DeleteQuarantine(path); }