Allow for a different output directory on convert; preserve file structure if in a folder

This commit is contained in:
Matt Nadareski
2016-05-18 14:19:02 -07:00
parent 611e13eedc
commit ce1f895a9b
2 changed files with 88 additions and 89 deletions

View File

@@ -68,6 +68,9 @@ namespace SabreTools.Helper
outDir += Path.DirectorySeparatorChar;
}
// Create the output directory if it doesn't already exist
Directory.CreateDirectory(outDir);
// (currently uses current time, change to "last updated time")
logger.User("Opening file for writing: " + outDir + datdata.Description + (datdata.OutputFormat == OutputFormat.Xml ? ".xml" : ".dat"));