[DatFile] Use helper method for rebuild depot

This commit is contained in:
Matt Nadareski
2018-03-04 20:54:51 -08:00
parent fe03a72d85
commit eb10115430

View File

@@ -3830,11 +3830,7 @@ namespace SabreTools.Library.DatFiles
}
// Check that the output directory exists
if (!Directory.Exists(outDir))
{
Directory.CreateDirectory(outDir);
outDir = Path.GetFullPath(outDir);
}
outDir = Utilities.EnsureOutputDirectory(outDir, create: true);
// Now we want to get forcepack flag if it's not overridden
if (outputFormat == OutputFormat.Folder && ForcePacking != ForcePacking.None)