public async Task <IEnumerable <ContentInfo> > ListContentAsync(ContentType contentType) { var dirPath = "/posts"; var content = await gitHubClient.GetContentAsync(dirPath); return(content.Select(c => new ContentInfo() { Name = c.name, Path = c.path, Dir = Path.GetDirectoryName(c.path) })); }