private List <FileStruct> GetList(string datastring) { List <FileStruct> myListArray = new List <FileStruct>(); string[] dataRecords = datastring.Split('\n'); foreach (string s in dataRecords) { if (String.IsNullOrEmpty(s)) { continue; } FileStruct f = new FileStruct(); f.Name = ".."; f = ParseFileStruct(s); if (f.Name != "" && f.Name != "." && f.Name != "..") { myListArray.Add(f); } } return(myListArray); }