[DATFromDir] Make sure temp folder exists

This commit is contained in:
Matt Nadareski
2016-08-17 16:16:54 -07:00
parent 1c31ac97e2
commit cefd9135d8

View File

@@ -295,6 +295,12 @@ namespace SabreTools
tempdir += (tempdir.EndsWith(Path.DirectorySeparatorChar.ToString()) ? "" : Path.DirectorySeparatorChar.ToString());
tempdir += "__temp__" + Path.DirectorySeparatorChar;
// Create the temporary directory
if (!Directory.Exists(tempdir))
{
Directory.CreateDirectory(tempdir);
}
// Special case for if we are in Romba mode (all names are supposed to be SHA-1 hashes)
if (_datdata.Romba)
{