//Step 1 - Get all the ini's from MainDir5, //these objects become part of the "CURRENT_LOADED_INI_ECL_OBJS" that can be accessed. //Each object can have "INI_JOB_FOLDER" that you can plug into BUILD_JOB_INFO_LIST public void BUILD_INI_LIST_FROM_PATH(string path) { CURRENT_LOADED_INI = new List<string>(); CURRENT_LOADED_INI_ECL_OBJS = new List<EclipseObject>(); foreach (string ini in Directory.GetFiles(path, "*.ini*", SearchOption.TopDirectoryOnly)) { if (Path.GetFileName(ini) != null) { EclipseObject checkedObj = new EclipseObject(Path.GetFileName(ini), ".ini", ini, CURRENT_MAINDIRECTORY5); if (checkedObj.INI_JOB_PATH != null) { CURRENT_LOADED_INI.Add(ini); CURRENT_LOADED_INI_ECL_OBJS.Add(checkedObj); } } } }
public void addIniObjForBackup(EclipseObject obj, List<FileInfo> assocFiles) { iniObjDict.Add(obj, assocFiles); }