public async Task <Dictionary <string, UpdataItem> > ReadLaunchrSelfInfo(string path) { if (!Directory.Exists(path)) { return(new()); } Dictionary <string, UpdataItem> list = new(); IChecker checker = new MD5Checker(); await Task.Factory.StartNew(() => { var GetFiles = new GetFiles(); foreach (string FilePath in GetFiles.GetFileName(path)) { checker.FilePath = FilePath; UpdataItem mod = new() { local = FilePath, check = checker.GetFileChecksum() }; mod.name = mod.filename = FilePath.Replace(path, ""); if (list.ContainsKey(mod.name) == false) { list.Add(mod.name, mod); } } }); return(list); }