Removed PDF Path and validity checks
Added Validity Check - Procedure Set Path against Config DataPath
This commit is contained in:
@@ -30,7 +30,34 @@ namespace DataLoader
|
||||
{
|
||||
public partial class Loader
|
||||
{
|
||||
private List<Folder> vlnDataPathFolders() // was vlnDataPath
|
||||
private static List<string> _DataPaths = null;
|
||||
public static List<string> DataPaths
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_DataPaths == null)
|
||||
{
|
||||
_DataPaths = new List<string>();
|
||||
string sCfg = Environment.GetEnvironmentVariable("veconfig");
|
||||
IniReader cfg = new IniReader(sCfg);
|
||||
// Get DataPath
|
||||
string sDP = cfg.ReadString("menu", "DataPath");
|
||||
// Split DataPath into directories
|
||||
// Get the current list of folders so that if it already exists, just get the 'Folder', otherwise
|
||||
// make it. It was done this way because there was no way to get the Folder given a name/Title.
|
||||
foreach (string s1 in sDP.Split(";".ToCharArray()))
|
||||
{
|
||||
if (s1.Length > 0)
|
||||
{
|
||||
string[] s2 = s1.Split(",".ToCharArray());
|
||||
_DataPaths.Add( s2[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
return Loader._DataPaths;
|
||||
}
|
||||
}
|
||||
public List<Folder> vlnDataPathFolders() // was vlnDataPath
|
||||
{
|
||||
List<Folder> dpf = new List<Folder>();
|
||||
// Get path to config file
|
||||
|
Reference in New Issue
Block a user