[ArchiveTools] Make sure the folder is created

This commit is contained in:
Matt Nadareski
2017-02-11 12:40:12 -08:00
parent d70d324e22
commit 56c9910077

View File

@@ -1336,6 +1336,12 @@ namespace SabreTools.Helper.Tools
if (romba)
{
outfile = Path.Combine(outDir, Style.GetRombaPath(rom.SHA1));
// Check to see if the folder needs to be created
if (!Directory.Exists(Path.GetDirectoryName(outfile)))
{
Directory.CreateDirectory(Path.GetDirectoryName(outfile));
}
}
// Otherwise, we're just rebuilding to the main directory
else