public FileGroup GetGroup(string groupName) { var root = shareClient.GetRootDirectoryClient(); var fm36Folder = root.GetSubdirectoryClient(groupName); var fileGroup = new FileGroup { Name = fm36Folder.Name }; var fm36Files = fm36Folder.GetFilesAndDirectories(); foreach (var fm36File in fm36Files) { if (fm36File.IsDirectory) { continue; } fileGroup.Files.Add(Fm36File.Parse(fm36File.Name)); } return(fileGroup); }