[FIleTools] Fix SuperDAT write out

This commit is contained in:
Matt Nadareski
2016-09-14 10:06:31 -07:00
parent 901ecf2c49
commit e6d901f9b9

View File

@@ -39,6 +39,12 @@ namespace SabreTools.Helper
ZipArchive outarchive = null; ZipArchive outarchive = null;
try try
{ {
// If the full output path doesn't exist, create it
if (!Directory.Exists(Path.GetDirectoryName(archiveFileName)))
{
Directory.CreateDirectory(Path.GetDirectoryName(archiveFileName));
}
// If the archive doesn't exist, create it // If the archive doesn't exist, create it
if (!File.Exists(archiveFileName)) if (!File.Exists(archiveFileName))
{ {
@@ -650,7 +656,7 @@ namespace SabreTools.Helper
MD5 = string.Empty, MD5 = string.Empty,
SHA1 = string.Empty, SHA1 = string.Empty,
}, },
Date = temp.LastWriteTime.ToString(), //Date = temp.LastWriteTime.ToString(),
}; };
try try