(appGUID string, instance int, path string)
| 25 | } |
| 26 | |
| 27 | func (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 | } |
nothing calls this directly
no test coverage detected