/**
* GET /projects/{projectName}/repos/{repoName}/tree{path}?revision={revision}
*
* <p>Returns the list of files in the path.
*/
@Get("regex:/projects/(?<projectName>[^/]+)/repos/(?<repoName>[^/]+)/tree(?<path>(|/.*))$")
public CompletionStage<List<EntryDto<?>>> listFiles(@Param("path") String path,
@Param("revision") @Default("-1") String revision,
@RequestObject Repository repository) {
final String path0 = rootDirIfEmpty(path);
return listFiles(repository, path0, new Revision(revision),
ImmutableMap.of(FindOption.FETCH_CONTENT, false));
}
ContentServiceV1.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:centraldogma
作者:
评论列表
文章目录