MCPcopy Index your code
hub / github.com/cloudfoundry/cli / ListFiles

Method ListFiles

cf/api/appfiles/app_files.go:27–36  ·  view source on GitHub ↗
(appGUID string, instance int, path string)

Source from the content-addressed store, hash-verified

25}
26
27func (repo CloudControllerAppFilesRepository) ListFiles(appGUID string, instance int, path string) (files string, apiErr error) {
28 url := fmt.Sprintf("%s/v2/apps/%s/instances/%d/files/%s", repo.config.APIEndpoint(), appGUID, instance, path)
29 request, apiErr := repo.gateway.NewRequest("GET", url, repo.config.AccessToken(), nil)
30 if apiErr != nil {
31 return
32 }
33
34 files, _, apiErr = repo.gateway.PerformRequestForTextResponse(request)
35 return
36}

Callers

nothing calls this directly

Calls 4

NewRequestMethod · 0.80
APIEndpointMethod · 0.65
AccessTokenMethod · 0.65

Tested by

no test coverage detected