From a95a9e1497976289db72213c51ae7b965f714c44 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 11 Apr 2016 16:11:20 -0700 Subject: [PATCH] Add check that shouldn't need to be checked Somehow on tests, the temp folder would render itself unfindable, and thus made the program crash. --- DATFromDir/DATFromDir.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/DATFromDir/DATFromDir.cs b/DATFromDir/DATFromDir.cs index afb061d8..b252d0f4 100644 --- a/DATFromDir/DATFromDir.cs +++ b/DATFromDir/DATFromDir.cs @@ -95,7 +95,10 @@ namespace SabreTools } // Delete the temp directory - Directory.Delete(_tempDir, true); + if (Directory.Exists(_tempDir)) + { + Directory.Delete(_tempDir, true); + } } // Order the roms by name of parent, then name of rom