You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there, I'm having an issue using the library. Trying to get the content of a file. I simply go through a folder tree and look for a certain file inside of the folder. If found I want to parse the yaml file. But the content of the file is always null.
Ok, I figured out what's going on. When you call something like this var contents = await github.repositories.getContents(slug, path);
If the path is a directory, you'll essentially get a file listing. For performance reasons the listing doesn't get all the contents for all the files in the listing.
If the path is directly to a file, you'll get the file contents.
So in your loop once you find a filename you are interested in, if you do another call to get Contents with the full path to the file you should get the contents.
Library version: latest
Flutter: 3.7.11
Dart: 2.19.6
Hey there, I'm having an issue using the library. Trying to get the content of a file. I simply go through a folder tree and look for a certain file inside of the folder. If found I want to parse the yaml file. But the content of the file is always null.
What I do:
What I get:
element.content is always NULL while filename and other values are filled correctly.
What I expect:
The content of the file
The text was updated successfully, but these errors were encountered: