create fmt_xml directory if needed

This commit is contained in:
John Jenko 2012-04-05 19:46:12 +00:00
parent da009a15eb
commit 1fee99e7ee

View File

@ -467,6 +467,8 @@ namespace fmtxml
private void CleanupDestinationFolder(string pattern)
{
DirectoryInfo di = new DirectoryInfo("fmt_xml");
if (di.Exists == false)
di.Create();
FileInfo[] fis = di.GetFiles(pattern);
foreach (FileInfo fi in fis) fi.Delete();
}