MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / ListFiles

Method ListFiles

agent/app/api/v2/file.go:39–50  ·  view source on GitHub ↗

@Tags File @Summary List files @Accept json @Param request body request.FileOption true "request" @Success 200 {object} response.FileInfo @Security ApiKeyAuth @Security Timestamp @Router /files/search [post]

(c *gin.Context)

Source from the content-addressed store, hash-verified

37// @Security Timestamp
38// @Router /files/search [post]
39func (b *BaseApi) ListFiles(c *gin.Context) {
40 var req request.FileOption
41 if err := helper.CheckBindAndValidate(&req, c); err != nil {
42 return
43 }
44 fileList, err := fileService.GetFileList(req)
45 if err != nil {
46 helper.InternalServer(c, err)
47 return
48 }
49 helper.SuccessWithData(c, fileList)
50}
51
52// @Tags File
53// @Summary File search: content grep + optional AI summary

Callers

nothing calls this directly

Calls 1

GetFileListMethod · 0.65

Tested by

no test coverage detected