代码之家  ›  专栏  ›  技术社区  ›  twasbrillig

正在Azure git中检索文件夹内容

  •  0
  • twasbrillig  · 技术社区  · 5 年前

    对于Azure git,我可以使用 this : https://dev.azure.com/{organization}/{Project}/_apis/sourceProviders/TfsGit/filecontents?repository={repo}&path={filename}&commitOrBranch=master&api-version=5.0-preview.1

    但是当我调用一个类似的命令,它应该列出一个目录中的所有文件, it 不起作用: https://dev.azure.com/{organization}/{Project}/_apis/sourceProviders/TfsGit/pathcontents?repository={repo}&path={foldername}&commitOrBranch=master&api-version=5.0-preview.1

    它总是返回以下内容:

    {"count":0,"value":[]}
    

    我做错了什么?

    0 回复  |  直到 5 年前