TempFolder will be deleted if it exists, whether or not it has files in it.

pull/3113/head
Mark McDowall 13 years ago
parent 30e30451c4
commit 8bfa34f23a

@ -28,7 +28,7 @@ namespace NzbDrone.Test.Common
[SetUp] [SetUp]
public void TestBaseSetup() public void TestBaseSetup()
{ {
if (Directory.Exists(TempFolder) && Directory.GetFiles(TempFolder, "*.*", SearchOption.AllDirectories).Any()) if (Directory.Exists(TempFolder))
{ {
Directory.Delete(TempFolder, true); Directory.Delete(TempFolder, true);
} }

Loading…
Cancel
Save