private bool checkValidOrCreate(String folder)
{
var normalizedFolder = SmartPath.ACATNormalizePath(folder);
if (Directory.Exists(normalizedFolder))
{
return true;
}
try
{
Directory.CreateDirectory(normalizedFolder);
return true;
}
catch (Exception)
{
DialogUtils.ShowTimedDialog(
Context.AppPanelManager.GetCurrentForm() as Form,
Resources.Error,
string.Format(Resources.CouldNotCreateFolder0, normalizedFolder));
}
return false;
}