public void DeleteRepository() { PhysicalDirectory.Empty(); Mountpoint.Empty(); Directory.Delete(PhysicalDirectory.FullName); Directory.Delete(Mountpoint.FullName); }
public void DeleteRepository() { if (Directory.Exists(PhysicalDirectory.FullName)) { PhysicalDirectory.Empty(); Directory.Delete(PhysicalDirectory.FullName); } if (Directory.Exists(Mountpoint.FullName)) { Mountpoint.Empty(); Directory.Delete(Mountpoint.FullName); } }