Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] contentService.getContents(repository) returns null content

org.eclipse.egit.github.core.service.ContentsService

For example:
Repository repository = new RepositoryService().getRepository(owner, name);
List<RepositoryContents> contents = new ContentsService().getContents(repository);

Then: contents.get(0).getContent() == null

On Thu, Jun 11, 2015 at 10:46 PM, Matthias Sohn <matthias.sohn@xxxxxxxxx> wrote:
On Thu, Jun 11, 2015 at 1:27 PM, Rob Crocombe <rjwc1993@xxxxxxxxx> wrote:
Hello, it appears using the function contentService.getContents(repository) to get contents of all files in the repository doesn't actually get the raw content. Looking at the GitHub API I can see the content field is missing when a directory is requested but is present when only one file is requested. Is this a missing feature in this Java implementation? Or on purpose? It would be possible to add contents using the download_url field. Thanks for your help.

what is contentService ?

-Matthias


Back to the top