extra validationn to assure procedure folder contains procedure data

This commit is contained in:
Rich 2012-02-15 20:38:28 +00:00
parent 0e74f50248
commit b327409d72

View File

@ -294,10 +294,21 @@ namespace DataLoader
ErrorPrefix = "";
}
// ProcedureSetPath = If OnlyThisSet is checked, then has to be non-blank
if (OnlyThisSet && (ProcedureSetPath ?? "") == "" || !Directory.Exists(ProcedureSetPath))
if (OnlyThisSet)
{
sb.Append(ErrorPrefix + "Procedure Folder must point to an existing folder\r\n");
ErrorPrefix = "";
if ((ProcedureSetPath ?? "") == "" || !Directory.Exists(ProcedureSetPath))
{
sb.Append(ErrorPrefix + "Procedure Folder must point to an existing folder\r\n");
ErrorPrefix = "";
}
else
{
if (!File.Exists(ProcedureSetPath + @"\set.dbf"))
{
sb.Append(ErrorPrefix + "Procedure Folder must point to an existing procedure data folder\r\n");
ErrorPrefix = "";
}
}
}
// BackupFileName = Has to be non-blank
if ((BackupFileName ?? "") == "")