Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The client doesn't support for files raw content #1651

Closed
l1salvatore opened this issue Aug 11, 2017 · 2 comments · Fixed by #2151
Closed

The client doesn't support for files raw content #1651

l1salvatore opened this issue Aug 11, 2017 · 2 comments · Fixed by #2151

Comments

@l1salvatore
Copy link

I didn't found any object that refers to all files of the repository. Could you please tell me if it is correct ?

Thanks in advance!

Lucas

@shiftkey
Copy link
Member

Are you looking for the Content API, that lets you read directories or files in a repository?

var contents = await client.Repository.Content.GetAllContents("octocat", "Spoon-Knife");

This should give you a list of folders and files at the root of the repository.

@shiftkey
Copy link
Member

shiftkey commented Mar 4, 2020

Closing this out due to inactivity

@shiftkey shiftkey closed this as completed Mar 4, 2020
0xced added a commit to 0xced/octokit.net that referenced this issue Mar 12, 2020
0xced added a commit to 0xced/octokit.net that referenced this issue Mar 12, 2020
0xced added a commit to 0xced/octokit.net that referenced this issue Mar 12, 2020
This allows to spare a little over 100ms in my tests on small files vs using the `GetAllContentsByRef` API.

Fixes octokit#1651
0xced added a commit to 0xced/octokit.net that referenced this issue Mar 12, 2020
This allows to spare a little over 100ms in my tests on small files vs using the `GetAllContentsByRef` API.

Fixes octokit#1651
0xced added a commit to 0xced/octokit.net that referenced this issue Mar 13, 2020
This allows to spare a little over 100ms in my tests on small files vs using the `GetAllContentsByRef` API.

Fixes octokit#1651
0xced added a commit to 0xced/octokit.net that referenced this issue Mar 13, 2020
This allows to spare a little over 100ms in my tests on small files vs using the `GetAllContentsByRef` API.

Fixes octokit#1651
0xced added a commit to 0xced/octokit.net that referenced this issue Mar 17, 2020
This allows to spare a little over 100ms in my tests on small files vs using the `GetAllContentsByRef` API.

Fixes octokit#1651
0xced added a commit to 0xced/octokit.net that referenced this issue Apr 2, 2020
This allows to spare a little over 100ms in my tests on small files vs using the `GetAllContentsByRef` API.

Fixes octokit#1651
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants