//const string hooksNoGit = @"\w*(?<!.git\)hooks"; static void Main(string[] args) { FileSystemOps oper = new FileSystemOps(myAccumInfo); List <String> results = oper.FilterFSInfo(args, null, null); Console.WriteLine("\n Interpret1.log (result List items={0}) ", results.Count); lock (errInfo) { foreach (var var in errInfo) { Console.WriteLine(var); } } Console.WriteLine("\n Interpret1.log end"); }
private void CopyDirectories(string[] args, Dictionary <string, string> opts, Dictionary <string, string> pars, List <string> resultFinalList) { Parallel.ForEach(resultFinalList, dir => { Dictionary <string, string> lpars = pars.Keys.ToDictionary(par => par, par => pars[par]); lpars["oper"] = "findf"; lpars["src"] = dir; try { FileSystemOps fso = new FileSystemOps(myLog); fso.FilterFSInfo(args, opts, lpars); } catch (Exception exc) { string emsg = SimpleUtils.ExceptionMsg(exc, "CopyDirectories parallel exception at " + dir); Console.WriteLine(emsg); myLog(emsg); } }); string msg = SimpleUtils.InfoMsg("findd with des length ", resultFinalList.Count, "oper.findd walk"); Console.WriteLine(msg); myLog(msg); }