【问题标题】:get all the sub file paths in a github repository获取 github 存储库中的所有子文件路径
【发布时间】:2014-06-23 19:00:21
【问题描述】:

我最近一直在玩 github api (V3)。我想获取当前提交的主仓库中所有文件和子文件的列表。

我可以跑

https://api.github.com/repos/elasticsearch/elasticsearch/contents/

并发送更多请求以抓取目录。但是documentation 提到我可以使用tree api 来获得所有结果。但是

https://api.github.com/repos/elasticsearch/elasticsearch/contents/?recursive=1

返回相同的内容。我可以在一个请求中获取所有文件路径吗?

【问题讨论】:

    标签: github github-api


    【解决方案1】:
    猜你喜欢
    • 2014-09-21
    • 2019-02-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-10-05
    • 1970-01-01
    相关资源
    最近更新 更多