private void CreatePath(string path)
{
path = Path.GetDirectoryName(path); // strip filename
if (path != null && !Directory.Exists(path))
{
UpdateUI(" Creating directory " + path + "...", true);
try
{
Directory.CreateDirectory(path);
}
catch (Exception ex)
{
AppendLine("... FAILED");
UpdateUI(" (" + ex.Message + ")", true);
}
}
}