extra validationn to assure procedure folder contains procedure data
This commit is contained in:
parent
0e74f50248
commit
b327409d72
@ -294,10 +294,21 @@ namespace DataLoader
|
|||||||
ErrorPrefix = "";
|
ErrorPrefix = "";
|
||||||
}
|
}
|
||||||
// ProcedureSetPath = If OnlyThisSet is checked, then has to be non-blank
|
// 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");
|
if ((ProcedureSetPath ?? "") == "" || !Directory.Exists(ProcedureSetPath))
|
||||||
ErrorPrefix = "";
|
{
|
||||||
|
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
|
// BackupFileName = Has to be non-blank
|
||||||
if ((BackupFileName ?? "") == "")
|
if ((BackupFileName ?? "") == "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user