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