From 1fee99e7ee44eebc7be6af867fd1f92e64e9b085 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 5 Apr 2012 19:46:12 +0000 Subject: [PATCH] create fmt_xml directory if needed --- PROMS/fmtxml/Form1.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PROMS/fmtxml/Form1.cs b/PROMS/fmtxml/Form1.cs index b5694936..c34ceb5c 100644 --- a/PROMS/fmtxml/Form1.cs +++ b/PROMS/fmtxml/Form1.cs @@ -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(); }