我正在尝试列出 Github 存储库中的所有文件。
def listFiles(self, filepath):
git = githubHandler(GH_USERNAME, GH_PASSWORD)
gh, repo, branch = git.connect_to_github()
tree = branch.commit.commit.tree.recurse()
print repo.blob
print branch
到目前为止,我只能输出 repo 分支和名称。有任何想法吗?